I'm developing a website wherein the user searches for a name and results will be in a list. Then there is a link where in the user will preview an email format, like a confirmation page and at the bottom is a send button. After the button is clicked, it should send an email to that person.
My first question is should I use buttons? input type="submit"? link? Second is how do I keep passing those variables. This is the preview code:
<img src="../../img/emmlogo.jpg" style="left: 0;position: absolute; width: 75px;"/> <body style="padding: 0 0 0 100px;position: relative;"> <?php echo date("F d, Y ");?> <br><br> <b><?php echo $row_Recordset1['First Name'].' '.$row_Recordset1['Middle Initial'].' '.$row_Recordset1['Last Name']; ?></b><br> <?php echo $row_Recordset1 ['Position'].'<br>'.$row_Recordset1['Company Name'].'<br>'.$row_Recordset1['Corporate Address'];?><br><br> <p>Dear <?php echo $row_Recordset1['Last Name']; ?>:</p> //the rest of the letter goes here
How will I get to pass the variables to the email code? Should I add another page with the queries same as the preview page? or is there a way that I don't need to do that. Any help is appreciated. Thanks!