Jump to content

PHP Form Help Please


netxcs

Recommended Posts

please expand explanation re below
Thanks in advance


netxcs

I'm currently working on a order page located @ http://www.hookonscaffolding.com.au/html/orderexistingcl.htm

now 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

ProjectFear
Forum Helper
 

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">
would become:
Code:
<?php
$field = $_POST['Field'];
?>
<input type="hidden" name="Field" value="<?php echo $field; ?>">

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...

Logged
Link to comment
https://forums.phpfreaks.com/topic/31955-php-form-help-please/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.