netxcs Posted December 19, 2006 Share Posted December 19, 2006 I'm currently working on a order page located @ http://www.hookonscaffolding.com.au/html/orderexistingcl.htmnow the page is functional for testing, what i'v been trying to do is to change the submit button to a preview button to show the clients order then to give them the option to confirm the orderor to go back and change the order.currently the way the order.php script works is that the oeder is submited and then displayes the order and sends it in the one proccess, i need the script to display a preview offering to confirm it or go back and update the order.if you view source on the form page you will see the script, i have not hidden this as of yet.any help regarding would be fantastic as this is killing me, i beleive that for one with this skills it would be a quick fix but then i dont have these "{yet}" please help.Thanks in advance Link to comment https://forums.phpfreaks.com/topic/31284-help-with-oderphp/ Share on other sites More sharing options...
JasonLewis Posted December 19, 2006 Share Posted December 19, 2006 well its not a very large form. so you can do it my way. make another page called preview.php or something along those lines..in this page receive all the data from the form with PHP. Then make a new form except use HIDDEN fields. name them exactly the same as they were on the previous page.ie:[code]<input type="text" name="Field">[/code]would become:[code]<?php$field = $_POST['Field'];?><input type="hidden" name="Field" value="<?php echo $field; ?>">[/code]on preview.php you would do that for all the fields, then just using the same table as you have on the order form page simply add in php variables to the appropriate places...Remember to put it all in a form and at the bottom have a Submit button and a Back button... Link to comment https://forums.phpfreaks.com/topic/31284-help-with-oderphp/#findComment-144805 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.