Re: First PHP form problem.

From: Date: Fri, 07 Dec 2001 16:26:11 +0000
Subject: Re: First PHP form problem.
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969339529@lists.php.net to get a copy of this message
Please ask support questions on our mailing lists. You can subscribe to one at http://www.php.net/support.php This mailing list is for the Documentation Team, and not for public problem solving, sorry. Goba ----- Original Message ----- From: Ron Suarez To: phpdoc@lists.php.net Sent: Friday, December 07, 2001 5:04 PM Subject: [PHP-DOC] First PHP form problem. I really thought this would be simple enough, but is just doens't seem to work. Does anyone have any ideas? Thanks in advance. Ron. HTML Code: ------------------ <BODY> <FORM METHOD="POST" ACTION="do_sendform.php"> Contact Name:<INPUT TYPE="text" NAME="last_name" VALUE="" SIZE="25" MAXLENGTH="25"> Company:<INPUT TYPE="text" NAME="company_name" VALUE="" SIZE="25" MAXLENGTH="25"> Email Address:<INPUT TYPE="text" NAME="email" VALUE="" SIZE="25" MAXLENGTH="25"> Phone Number:<INPUT TYPE="text" NAME="phone_number" VALUE="" SIZE="25" MAXLENGTH="25"> Card selected:<SELECT NAME="card_selected"><OPTION>SleighBells<OPTION>Snowflake<OPTION>Gingerbread</SELECT> <INPUT TYPE="submit"></TD><TD><BR><INPUT TYPE="reset"></TD></TR> </FORM> </BODY> PHP Code (file name do_sendform.php): ---------------------------------------------------------- <?php $msg = "Contact Name:\t$last_name\n"; $msg = "Company Name:\t$company_name\n"; $msg .= "Sender E-Mail:\t$email\n"; $msg .= "Phone Number:\t$phone_number\n\n"; $msg .= "Card Selected:\t$card_selected\n\n"; $recipient = "rsuarez@blurtdesign.com"; $subject = "eCARD"; $mailheaders = "From: Customer <> \n"; $mailheaders .= "Reply-To: $email\n\n"; mail($recipient, $subject, $msg, $mailheaders); echo "<HTML><HEAD><TITLE>titleTITLE></HEAD><BODY>"; echo "<H1 align=center>Thank You, $last_name</H1>"; echo "<P align=center>Your request has been sent.<BR> </P><BR>"; echo "<H1 align=center>return to<BR><a href=HTTP://www.blurtdesign.com>www.blurtdesign.com</a></H1>"; echo "</BODY></HTML>"; ?>

« previous php.doc (#969339529) next »