|
Posted by Garry Jones on 04/13/06 01:33
"Areric" <josh.schramm@gmail.com> skrev i meddelandet
news:1144859265.824519.146700@z34g2000cwc.googlegroups.com...
> what is the motivation behind using the index5c.html page. Generally
> you display your content on the same page you submit to.
Ok, maybe I am not going about this in the best way. Lets start from the
begining.
I have a page in which users can enter data about themselves and their
friends to sign up for a sporting event. I process the form and the MySQL
coding with process_this.php. I then return control to the index5c.html
which thanks the user for his registration(s). Here, I thought would be a
good idea to remind the user of the data that has been keyed in. Based on
how many participants the user has registered and according to which
distance for each participant is signed up for the total price will be
different. That will all come later first I need to be able to pass
variables back.
However, a thought struck me. Maybe its best not to process the SQL coding
straight away. When the user clicks submit maybe I can use a preview page
which shows the user the data entered and asks him to confirm the
registration. Here I could also use some maths to show him the ammount of
money to pay in if he confirms. Cancel would send the user back to the entry
form, OK would submit and send to a process php file which would handle the
code for MySQL.
So, starting like this...
<FORM method="post" action="preview_this.php" name="anmals" id="anmals" >
<TABLE width="400" BORDER="2" CELLSPACING="0" cellpadding="4">
<td >Name</td>
<td ><input type="text" size="45" name="realname" value= ""></td>
</TABLE>
</FORM>
I need to create a preview page. In this preview I need to show $realname
and be able to do some calculations on other variables before displaying the
data. I'd like to show a new form with no user editable information, the
user reads it, sees the ammount payable and clicks OK or Cancel. OK sends it
off to the process_this.php
Can someone point me in the right direction to set this up.
Garry Jones
Sweden
[Back to original message]
|