|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
Can someone please tell me how to make a form open up into a thank you page after a client has sent it in? I am using the POST method. Is the answer in the TARGET BOX?
Regards Ian
__________________
Property for sale Spain, Turkey, Brazil, PANAMA www.daydreamvillas.co.uk Private Property rentals across the World www.gamasl.co.uk |
|
||||
|
Ian,
It really depends on the programming language that you're using and how it processes form input. Personally, I use ASP and direct the form to itself, using a querystring to distinguish whether the form has been posted or not. http://www.adamwebdesign.ca/contact_adam_web_design Try it out. You'll see the querytring in question (the part after the ?) when you submit stuff. Just make sure you indicate who you are and that you're just messing with my form. The email address is also concealed that way, thus keeping it from evil spammy types.
__________________
Toronto Web Design | Search Engine Friendly, Standards-Compliant Layouts | Walk on my Path (my blog) |
|
||||
|
I work with Namo WebEditor. When I highlight the form up comes a box with
Form name Here I have added the forms name Target Here you can choose from _blank _self _parent _top Action My domain ?Subject=Web Form Response (This sends form to me) Method Post Encoding type Text/Plain What I am trying to do is to make it open into a thank you page once the client has sent the form. Regards Ian
__________________
Property for sale Spain, Turkey, Brazil, PANAMA www.daydreamvillas.co.uk Private Property rentals across the World www.gamasl.co.uk |
|
||||
|
ohlson: the answer to this will depend not on your editor, but the script processing the form. This is defined in the action attribute, and it will be the part just before the "?subject=".
Once you know the name of the script or the file processing it, you can either find documentation on it to find the correct hidden form field to use or you can hard-code in a redirect (if you know the programming language used). Depending on the script, others here may have used it, and you may be able to ask here. So...look up the action attribute and tell us what it says, and we can go from there. Sorry about not really making that clear earlier.
__________________
Toronto Web Design | Search Engine Friendly, Standards-Compliant Layouts | Walk on my Path (my blog) |
|
||||
|
It sounds like you're just using the mailto for the target of the form and so you're not using a script at all. Using this method I do not think it is possible to have a thank you page.
As dharrison and Adam have said, you will need a script to have a thank you page. I personally use php for my script. Whichever script you choose - this is the target of the form. Have a look on Hotscripts.com you may find something suitable there. HTH =) |
|
||||
|
As you're using mailto, that kinda puts my theory out the window. Munky is right, there is no way to have a thank you page using the mailto method.
As an alternative solution, you can use a bit of JavaScript where a thank you window pops up when someone submits a form. I use a similar thing for one of my clients www.jgmracing.co.uk HTH |
|
||||
|
I don't think he's using mailto, since he said the action attribute of the form was set to his domain, not his email. Hence my advice.
__________________
Toronto Web Design | Search Engine Friendly, Standards-Compliant Layouts | Walk on my Path (my blog) |
|
||||
|
Surely if it's pointed at his domain name and not an already established script then it's a mailto link?
Unless cgi scripts can pick up post information directly from the domain name? I just thought he meant something@mydomainname and not his actual domain name. Maybe ohlson could give us more information so we can get a better idea. I'm probably wrong though =P |
|
||||
|
Code:
<FORM class=body accept-charset=UTF-8 action="mailto:spain@yahoo.co.uk?Subject=Web Form Response OUR PETS " method=post encType="Text/Plain" name="Pets to go" target="_blank"> To be able to have a thankyou page, you will need to have a script that handles the e-mail instead of the mailto link. So instead it will be - action="script". |
|
||||
|
Hi
So how and where do I find the correct place on the page to insert this code? Regards Ian
__________________
Property for sale Spain, Turkey, Brazil, PANAMA www.daydreamvillas.co.uk Private Property rentals across the World www.gamasl.co.uk |
|
|||
|
it should be placed before the input fields begin.
|
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |