Mail-form

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Joker

    Mail-form

    Hello,

    I'm trying to make a mail-form with PHP. But the point is I want a function
    so the user can choose the receiver (adress) with a drop-down menu box.

    example: http://www.battaniye.net/?git=5

    How can I program this in PHP ??

    Can someone help me?


    Thanks


  • Ian.H

    #2
    Re: Mail-form

    On Sun, 18 Jul 2004 11:59:25 +0200, Joker wrote:
    [color=blue]
    > Hello,
    >
    > I'm trying to make a mail-form with PHP. But the point is I want a function
    > so the user can choose the receiver (adress) with a drop-down menu box.
    >
    > example: http://www.battaniye.net/?git=5
    >
    > How can I program this in PHP ??
    >
    > Can someone help me?
    >
    >
    > Thanks[/color]


    $people = array(
    '1' => 'foo@bar.com',
    '2' => 'bar@foo.com'
    );

    $recipient = $people[$_GET['git']];


    This would need some validation but one solution =)


    HTH.



    Regards,

    Ian

    --
    Ian.H
    digiServ Network
    London, UK


    Comment

    • Brian

      #3
      Re: Mail-form

      Joker wrote:
      [color=blue]
      > I'm trying to make a mail-form with PHP. But the point is I want a
      > function so the user can choose the receiver (adress) with a
      > drop-down menu box.
      >
      > example: http://www.battaniye.net/?git=5
      >
      > How can I program this in PHP ??[/color]

      Write code that produces a <SELECT> element. (Have I missed what you
      are asking?)

      --
      Brian (remove ".invalid" to email me)

      Comment

      Working...