close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Submit Button - Pointing to?

Thread began 7/27/2009 3:32 pm by warrencindy368082 | Last modified 7/28/2009 9:25 pm by Jon Gibson | 1340 views | 4 replies |

warrencindy368082

Submit Button - Pointing to?

I have used the Contact Solution in several sites with no issue until now. For some reason in my new site when the Submit button is pressed it points to the index.html page. I need it to ppoint to the contactus.php page. Where is this setting located so I can change it?

Thanks!

After further testing I see that the script that I use on top of the page for the Flash heading is causing the Submit button to default to index.html. How can I force the Submit button to point to contactus.php?

Sign in to reply to this post

Jon GibsonBeta Tester

Form Action

Hello Cindy:

If I understand you correctly, the submit button you are referring to is on the contactus.php file itself?

If that is the case, then you should type in the address (contactus.php) within the action parameter:

<form action="http://www.yoursitename.com/contactus.php">

Hope that helps.
Jon

Sign in to reply to this post

warrencindy368082

Thanks Jon... yes, I am talking about the Submit Button on the Contactus.php... I have done the following... is that what you have suggested?

It doesnot seem to affect my button in the live environment.

<form action="http://cleareflections.com/contactus.php" method="post" name="emailContact" onSubmit="WAValidateRQ(document.emailContact.Contact_Name,'- Please enter your name',document.emailContact.Contact_Name,0,false,'text');WAValidateEM(document.emailContact.Email_address,document.emailContact.Email_address.value,'- Please enter your email address',document.emailContact.Email_address,0,true);WAValidateRQ(document.emailContact.Comments,'- Please provide a comment so that we know how best to assist you',document.emailContact.Comments,0,true,'textarea');WAValidateRQ(document.emailContact.Security_code,'- Please enter the text as it appears in the image above',document.emailContact.Security_code,0,false,'text');WAValidateRQ(document.emailContact.Security_question,'- Please answer the question to ensure a human is filling out this form.',document.emailContact.Security_question,0,false,'text');WAAlertErrors('The following errors were found','Correct invalid entries to continue',true,false);return document.MM_returnValue"></form>

Sign in to reply to this post

Jon GibsonBeta Tester

oops

sorry, that was the wrong advice for your problem, as the action should be left blank since it is posting to itself.

Try this instead:

Go to about line 34 or so . . . you are looking for the:
//Send Mail All Entries
if ("index.php" != "") {
header("Location: thankyou.php");
}

make sure that the location is to the thank you page.

What is the code you have for your flash banner/menu? That may ultimately be the problem. Post that code if possible.

Sign in to reply to this post

Jon GibsonBeta Tester

Did it work?

Just curious . . . did it work out or did you get your solution to work?

Sign in to reply to this post

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