Forum Moderators: open

Message Too Old, No Replies

Submit button (dreamweaver)

and page that follows

         

ehsanm

12:59 am on Apr 25, 2003 (gmt 0)

10+ Year Member


I'm redesigning a clients page and am at the last step. The submit button on their reservations page.

When the button is clicked, you are redirected to a thank you/confirmation page which is supplied by another website "http://www.toronto.com/cgi-bin/" . When you click okay the page redirects to the other sites main URL. The form is sent to the proper email address, but now you're taken to a totally different site.

How can I make the confirmation page be part of the same website? I've designed the layout, but need to know who to redirect all the info to it.

This is where I believe my problem lays>>

{<form name=formToValidate onSubmit="return checkrequired(this)"
action=http://www.toronto.com/cgi-bin/uniform method=post>}

grahamstewart

1:15 am on Apr 25, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi ehsanm,

Welcome to WebmasterWorld [webmasterworld.com]

You are right, the action attribute controls which page the form data is submitted to.

So you want..


<form name="formToValidate" onSubmit="return checkrequired(this)"
action="http://whatever" method="post">

However, it won't be as simple as changing this to a different page, because presumably the page you are sending the form information to has a server-side script that does something with the information before displaying the thankyou message.

ehsanm

2:53 am on Apr 25, 2003 (gmt 0)

10+ Year Member



Hi Grahamstewart!

Do you know how I'd create a page like that? I already designed and completed the confirmation page, along with the rest of the site... It's just this that's got me stumped. All I want to do is to have the whole form sent to a specific email address while redirecting to the confirmation pages that I've already designed.

Thanks a bunch!

grahamstewart

3:09 am on Apr 25, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You would usually write a page in a server-side language like php or perl.
But there is no point re-inventing the wheel - take a look at the code for the existing page, you can probably use it with very little alteration.