anushka Posted March 10, 2008 Share Posted March 10, 2008 Hi i am having a html form in that form they are 15 feildsand after submitting the form all the feilds should go to php page and i should dispaly in table form,here is the code what wrote.I am getting a mail ,but iwhat i have sent entered in html form are not dispalying code <?php $name = $_REQUEST['name']; echo $name; $designation = $_REQUEST['Designation']; //echo $designation; $company = $_REQUEST['Company']; //echo $company; $address = $_REQUEST['Address']; //echo $address; $address1 = $_REQUEST['Address1']; //echo $address1; $address2 = $_REQUEST['Address2']; //echo $address2; $phone= $_REQUEST['Phone']; //echo $phone; $fax = $_REQUEST['Fax']; //echo $fax; $email = $_REQUEST['Email']; //echo $email; $programme = $_REQUEST['Programme']; //echo $programme; $Programme1 = $_REQUEST['Programme1']; //echo $Programme1; $Programme2 = $_REQUEST['Programme2']; //echo $Programme2; $date = $_REQUEST['Date']; //echo $date; $venue = $_REQUEST['Venue']; //echo $venue; $nameofdelegate=$_REQUEST['name']; //echo $nameofdelegate; $Designation=$_REQUEST['designation']; //echo $Designation; $Contactdetails=$_REQUEST['contact']; //echo $Contactdetails; $NameofDelegate1=$_REQUEST['name1']; //echo $NameofDelegate1; $Designation1=$_REQUEST['designation1']; //echo $Designation1; $Contactdetails1=$_REQUEST['contact1']; //echo $Contactdetails1; $NameofDelegate2=$_REQUEST['name2']; //echo $NameofDelegate2; $Designation2=$_REQUEST['designation2']; //echo $Designation2; $Contactdetails2=$_REQUEST['contact2']; //echo $Contactdetails2; $NameofDelegate3=$_REQUEST['name3']; //echo $NameofDelegate3; $Designation3=$_REQUEST['designation3']; //echo $Designation3; $Contactdetails3=$_REQUEST['contact3']; //echo $Contactdetails3; $NameofDelegate4=$_REQUEST['name4']; //echo $NameofDelegate4; $Designation4=$_REQUEST['designation4']; //echo $Designation4; $Contactdetails4=$_REQUEST['contact4']; //echo $Contactdetails4; $NameofDelegate5=$_REQUEST['name5']; //echo $NameofDelegate5; $Designation5=$_REQUEST['designation5']; //echo $Designation5; $Contactdetails5=$_REQUEST['contact5']; //echo $Contactdetails5; $dd = $_REQUEST['DD']; //echo $dd; $dddate = $_REQUEST['date']; //echo $dddate; $money = $_REQUEST['money']; //echo $money; $sell = $_REQUEST['check']; //echo $sell; $Managing = $_REQUEST['check1']; //echo $Managing; $Effective = $_REQUEST['check2']; //echo $Effective; $Sales = $_REQUEST['check3']; //echo $Sales; $Key = $_REQUEST['check4']; //echo $Key; ?> <?php $message = " <!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> <link href='css/newcss.css' rel='stylesheet' type='text/css' /> </head> <body> <table width='629' border='1' cellspacing='0' cellpadding='0' align='center' class='new3'> <tr> <td width='286'>Name:</td> </tr> <tr> <td>Designation:</td> <td><?php echo $designation ?></td> </tr> <tr> <td>Company:</td> <td><?php echo $company ?></td> </tr> <tr> <td>Address:</td> <td><?php echo $address ?></td> </tr> <tr> <td> </td> <td><?php echo $address1 ?></td> </tr> <tr> <td> </td> <td><?php echo $address2 ?></td> </tr> <tr> <td>Phone:</td> <td><?php echo $phone ?></td> </tr> <tr> <td>Fax:</td> <td><?php echo $fax ?></td> </tr> <tr> <td>E-mail:</td> <td><?php echo $email ?></td> </tr> <tr> <td>Programme</td> <td><?php echo $$programme ?></td> </tr> <tr> <td> </td> <td><?php echo $$programme1 ?></td> </tr> <tr> <td> </td> <td><?php echo $$programme2 ?></td> </tr> <tr> <td>Date :</td> <td><?php echo $date ?></td> </tr> <tr> <td>Venue :</td> <td><?php echo $venue ?></td> </tr> <tr> <td>Name of Delegate</td> <td><?php echo $nameofdelegate ?></td> </tr> <tr> <td>Designation</td> <td><?php echo $Designation ?></td> </tr> <tr> <td>Contact details of Delegate (Tel / Fax / E-mail ID)</td> <td><?php echo $Contactdetails ?></td> </tr> <tr> <td>Name of Delegate1</td> <td><?php echo $nameofdelegate1 ?></td> </tr> <tr> <td>Designation1</td> <td><?php echo $Designation1 ?></td> </tr> <tr> <td>Contact details of Delegate (Tel / Fax / E-mail ID)1</td> <td><?php echo $Contactdetails1 ?></td> </tr> <tr> <td>Name of Delegate2</td> <td><?php echo $nameofdelegate2 ?></td> </tr> <tr> <td>Designation2</td> <td><?php echo $Designation2 ?></td> </tr> <tr> <td>Contact details of Delegate (Tel / Fax / E-mail ID)2</td> <td><?php echo $Contactdetails2 ?></td> </tr> <tr> <td>Name of Delegate3</td> <td><?php echo $nameofdelegate3 ?></td> </tr> <tr> <td>Designation3</td> <td><?php echo $Designation3 ?></td> </tr> <tr> <td>Contact details of Delegate (Tel / Fax / E-mail ID)3</td> <td><?php echo $Contactdetails3 ?></td> </tr> <tr> <td>Name of Delegate4</td> <td><?php echo $nameofdelegate4 ?></td> </tr> <tr> <td>Designation4</td> <td><?php echo $Designation4 ?></td> </tr> <tr> <td>Contact details of Delegate (Tel / Fax / E-mail ID)4</td> <td><?php echo $Contactdetails4 ?></td> </tr> <tr> <td>Name of Delegate5</td> <td><?php echo $nameofdelegate5 ?></td> </tr> <tr> <td>Designation5</td> <td><?php echo $Designation5 ?></td> </tr> <tr> <td>Contact details of Delegate (Tel / Fax / E-mail ID)5</td> <td><?php echo $Contactdetails5 ?></td> </tr> <tr> <td>DD</td> <td><?php echo $dd ?></td> </tr> <tr> <td>Dated</td> <td><?php echo $dddate ?></td> </tr> <tr> <td>Rs.</td> <td><?php echo $money ?></td> </tr> <tr> <td>Selling in a Competitive Environment</td> <td><?php echo $sell ?></td> </tr> <tr> <td>Managing Sales and People</td> <td><?php echo $Managing ?></td> </tr> <tr> <td>Effective Presentation Skills</td> <td><?php echo $Effective ?></td> </tr> <tr> <td>Sales Negotiating Skills</td> <td><?php echo $Sales ?></td> </tr> <tr> <td>Key Account Management</td> <td><?php echo $Key ?></td> </tr> </table> </body> </html> "; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $emailid='ashok.k.net@gmail.com'; mail($emailid, 'test mail', $message, $headers) or die('Could Not Send Mail'); ?> please can any one help me Quote Link to comment Share on other sites More sharing options...
trq Posted March 10, 2008 Share Posted March 10, 2008 You are already in php so things like.... <td><?php echo $designation ?></td> should simply be.... <td>$designation</td> Quote Link to comment Share on other sites More sharing options...
anushka Posted March 11, 2008 Author Share Posted March 11, 2008 Thank a lot for helping.Its working fine Quote Link to comment Share on other sites More sharing options...
conker87 Posted March 11, 2008 Share Posted March 11, 2008 Change your requests to $_POST too if you're only posting the data. Quote Link to comment Share on other sites More sharing options...
xyn Posted March 11, 2008 Share Posted March 11, 2008 _REQUEST / _POST doesnt really matter for non database related tasks. nonetheless _REQUEST is actually a security issue, as they can be changed by cookies or browser values. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.