dbirmler Posted March 15, 2007 Share Posted March 15, 2007 I'm having trouble with this form could someone help me ---------------------- HERE PHP <html><body> <?php $print = $_POST['Ready to Print']; $print = $_POST['Ready to Print']; $client_name = $_POST['Your Name']; $job_number = $_POST['Job Number']; echo "Thank you for confirming your order with Fundamental Media!"; mail("[email protected], [email protected]", "Order Form Received", $email_body, "$email_header"); ?> </body></html> ----------------------------- HERE HTML <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <title>Untitled Document</title> <style type="text/css"> <!-- .style12 {font-family: Arial, Helvetica, sans-serif; font-weight: bold; color: #333333; } .style13 {font-family: Arial, Helvetica, sans-serif} --> </style> </head> <body> <form id="Conformation Form" name="Confirmation" method="post" action="../Documents/print_confirmation.php"> <table width="300" border="0" cellspacing="0" cellpadding="0"> <tr> <td>Ready to Print? </td> <td><label> <input name="ready_to_print" type="radio" value="yes" /> Yes <input name="ready_to_print" type="radio" value="No" /> No </label></td> </tr> <tr> <td>Your Name </td> <td><input type="text" name="your_name" /></td> </tr> <tr> <td>Ministry Name </td> <td><input type="text" name="ministry_name" /></td> </tr> <tr> <td>Job Number </td> <td><input type="text" name="job_number" /></td> </tr> <tr> <td> </td> <td><label> <input type="submit" name="print" value="Print" /> <input type="reset" name="reset" value="Reset" /> </label></td> </tr> </table> </form> </body> </html> ================================= I'm new to all of this where is my problem and what is the correct php. Link to comment https://forums.phpfreaks.com/topic/42876-need-php-help-%E2%80%93-newbie/ Share on other sites More sharing options...
per1os Posted March 15, 2007 Share Posted March 15, 2007 You are referencing your $_POST variables wrong, they must match EXACTLY what the input name states. IE: $jobnumber = $_POST['job_number']; Even a mismatch in case will throw it off. Link to comment https://forums.phpfreaks.com/topic/42876-need-php-help-%E2%80%93-newbie/#findComment-208226 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.