|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Which Way To Go?
I have a form
|
|
#2
|
|||
|
|||
|
RE: Which Way To Go?
i had to do this once before.
Im sure this isn't the best way, but its most likely the easiest: <input type="text" value="<?php echo isset($_POST['var1']) ? $_POST['var1']:""; ?>" name="var1"> put this in the form, and put a bunch of hidden fields in the preview page: <input type="hidden" value="<?php echo $_POST['var1']; ?>" name="var1"> and if they like it it will post the variables to the database script, if they don't it will post it back to the form. |
|
#3
|
|||
|
|||
|
RE: RE: Which Way To Go?
Thanks for the info, however, I'm really confused with your code. For example, you don't tell me how to either go to the db or back to the input page. But thanks.
Quote:
|
|
#4
|
|||||
|
|||||
|
RE: Which Way To Go?
all you need to do is submit the form to itself and have three
submit buttons named submit on the first pass and one named edit and one named confirm on the second pass. php Code:
you could also do this by echoing the form data to the screen and asking for confirmation as opposed to showing the form on each pass. |
|
#5
|
|||
|
|||
|
RE: Which Way To Go?
acctually it would probibly be easiest if you just had it open in a new window.
|
|
#6
|
||||
|
||||
|
RE: Which Way To Go?
why? you have to duplicate the code that way. The form only needs one instance if you target self.
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > Which Way To Go? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|