close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Creating a "confirm.php" for contact/order form

Thread began 2/15/2011 4:23 am by rikaG_510 | Last modified 10/17/2019 11:26 pm by Max Johnson | 13147 views | 6 replies |

rikaG_510

Creating a "confirm.php" for contact/order form

Hi,

I am working on a simple order form that has these steps:
1. order form (with "place an order" button)
2. confirmation page (with "submit" button)
3. order email to us and copy of order form to a customer.

The site is static, and this is just a temporary thing, so I am simply extending a contact form to an order form (meaning a customer has to type in the product name and how many they want.)

So I started out with making a contact form using Form Builder, by adding form elements.
It seems the Form Builder has no function to make confirm.php automatically, so I searched through the forum, then I found below suggestion in one thread;

showthread.php?t=7584&highlight=confirm+page

So I did what exactly this suggestion said (I also created a file called "confirm.php".)
But I'm not really sure if this is the way to do for me.

At the moment "confirm.php" is not showing anything.
I assume "place an order" button needs to be fixed as it is still the same as when I first made this order form as a contact form with Universal Email function.

Any suggestion?

Sign in to reply to this post

Jason ByrnesWebAssist

Really what you are doing is what is called a multi page form.

Set the order form to post to the confirm page.

On the confirm page, create a hidden form element for each element on the order form page that will capture the value being posted from the order form page, you can also display those values to the user, for example, say you have an element on the order form page for First name named "first_name:

php:
<input type="text" name="first_name" id="first_name" value="" />



you can display this on the confirm page using:

php:
First name: <?php echo((isset($_POST["first_name"]))?$_POST["first_name"]:""?>




and also create a hidden form element of the same name to capture the posted value:

php:
<input type="hidden" name="first_name" id="first_name" value="<?php echo((isset($_POST["first_name"]))?$_POST["first_name"]:""?>" />




then set the confirm page to post to itself add the universal Email behavior, set the trigger to current page submit.

Select the option to Create a file for the email. This will send the confirm page form in an email when the submit order button is pressed.

Sign in to reply to this post

rikaG_510

Hi Jason,

Thank you for a detailed guidance.
I think I understand what it has to be done in confirm page.

The only thing is that I'm not sure how to set the order form "to post to the confirm page".
Could you tell me how?

Thank you again for your help.
Rika

Sign in to reply to this post

Jason ByrnesWebAssist

set the action of the form on the order page to go to the confirm page.

Sign in to reply to this post

rikaG_510

Got it.

I'll try the rest of it.
Will be back with some questions if I have problems.

Thank you!
Rika

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

Sign in to reply to this post

Max Johnson

This post has been deleted.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...