sai222 Posted April 1, 2009 Share Posted April 1, 2009 I am not very familiar with php so that is the main problem. What I have is a form that requires clients to fill out names, emails, and a section showing 4 different sessions which is a variable showing which time slot they prefer for the event. (allow to select only 1) The filled information needs to be send back to me as an email through our server's cgi-bin and that works fine. I get email showing all the information: names, emails and the selected session. The problem I have is to create a confirmation page after the client submitted the form. The confirmation page needs to reflect their time selected. The following is what I have for the success.php: (success.php = the confirmation page) <td colspan="3" class="bodyTD"><p><br /> <span class="ds5">Thank you, your information has been sent.</span><span class="ds4"> </span> </p> <p><span class="ds5"><br /> <?php $t = $_POST['RadioGroup1']; echo "Your Reservation: " . $t. "<br />"; ?><br /> </span></p> ------------------------------------------------------------- And for the initial form I have the following for the session selections: <div id="spryradio1"> <table width="335"> <tr> <td width="327"><label value="<? echo $_GET['t'] ?>"> <input type="radio" name="RadioGroup1" value="6:30-7:30pm, April 21,2009" id="RadioGroup1" /> 6:30-7:30pm, April 21, 2009 </label></td> </tr> <tr> <td><label> <input type="radio" name="RadioGroup1" value="6:30-7:30pm, April 23,2009" id="RadioGroup1" /> 6:30-7:30pm, April 23, 2009 </label></td> </tr> <tr> <td><label> <input type="radio" name="RadioGroup1" value="6:30-7:30pm, May 12,2009" id="RadioGroup1" /> 6:30-7:30pm, May 12, 2009 </label></td> </tr> <tr> <td><label> <input type="radio" name="RadioGroup1" value="6:30-7:30pm, May 14,2009" id="RadioGroup1" /> 6:30-7:30pm, May 14, 2009 </label></td> </tr> </table> </div> <INPUT TYPE="hidden" NAME="success" VALUE="http://207.58.XXX.XXX/../../../Form/success.php?t=`RadioGroup1`" method="post"> <input type="submit" name="submit" id="submit" value="Submit" /> </label> Again, I'm not good at php at all, so please forgive if my question is vague or don't have enough information .. please let me know what is needed for a better understanding of my situation. Thanks! Link to comment https://forums.phpfreaks.com/topic/152125-problem-creating-confirmation-page-that-reflects-a-completed-form-on-prev-page/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.