aflaton Posted December 1, 2009 Share Posted December 1, 2009 Hello All. I am new here I am a bit new with PHP coding I make a form with Php and html it is working good there is no problem. but when visitor fill the form and hit the submit button the data he/she enter in form come to my e-mail, in my e-mail I want to see it in column and cell Exp: Ex: <table width="500" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="189" scope="col"><div align="left">Full Name </div></th> <th width="311" scope="col"><div align="left">Someone</div></th> </tr> <tr> <td><div align="left">Last Name </div></td> <td><div align="left">something</div></td> </tr> <tr> <td><div align="left">E-mail</div></td> <td><div align="left">[email protected]</div></td> </tr> </table> Can any one help me how to make it, Thanks in advance. Link to comment https://forums.phpfreaks.com/topic/183521-how-to-send-form-data-into-table/ Share on other sites More sharing options...
Adam Posted December 1, 2009 Share Posted December 1, 2009 You very simply just replace the values with the variable name... <table width="500" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="189" scope="col"><div align="left">Full Name </div></th> <th width="311" scope="col"><div align="left"><?php echo $_POST['full_name']; ?></div></th> </tr> <tr> <td><div align="left">Last Name </div></td> <td><div align="left"><?php echo $_POST['last_name']; ?></div></td> </tr> <tr> <td><div align="left">E-mail</div></td> <td><div align="left"><?php echo $_POST['email']; ?></div></td> </tr> </table> You'll probably want to take the data out of the $_POST array though and apply some filtering. Oh and for future reference this isn't a regexp problem by the way. Adam Link to comment https://forums.phpfreaks.com/topic/183521-how-to-send-form-data-into-table/#findComment-968902 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.