Form Variables

From: Date: Thu, 24 Oct 2002 15:40:46 +0000
Subject: Form Variables
Groups: php.general 
Request: Send a blank email to php-general+get-121293@lists.php.net to get a copy of this message
Hi I am making use of php forms in my website. Can the names of variables be the same on two forms. Both the php forms are located in the same directory in the website folder. I am simply collecting data from the user using a PHP form and sending this data to myself in the form of an email. I also have another problem...when I make use of radio buttons on the form the email submission scheme does not work fine e.g. I have 1 form called application.php and in this form method/action I am doing the following. <form method="post" action="send_application.php"> In the application.php form I have 1 question and 2 radio buttons Did you meet this requirement?
          <input type="radio" name="button1" value="yes">
          Yes
          <input type="radio" name="button1" value="no">
          No <br>
In the send_application.php part , I am collecting this input of the user in this way and then mailing it to myself using the following php code <?
$msg = "Question 1             : $button1\n";
$to = "email@email.com"; $subject = "Form"; $mailheaders = "From: psgarcha <> \n"; $mailheaders .= "Reply-To: $email\n\n"; mail($to, $subject, $msg, $mailheaders); ?> Is this correct??? Please help me out..As when I do this I am not getting any email !! Pushpinder Pushpinder Singh Garcha _________________________________ Web Developer

« previous php.general (#121293) next »