Forum Moderators: mack

Message Too Old, No Replies

Form Function

Making a Thank You Page for form submission

         

wellbornSun

4:43 am on Jun 9, 2006 (gmt 0)

10+ Year Member


I'm creating a feedback form on my page, and would like to have a customized thank you page come up when they submit the form. How many options do I have to do this, and what are they? Be nice, I'm just starting.
w

MichaelBluejay

5:45 am on Jun 9, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



What script are you using for the submission form? If it's a Perl script, just add this to the end:

print "Location:thanks.html\n\n";

That will send the user to a page with the filename "thanks.html".

wellbornSun

2:07 pm on Jun 10, 2006 (gmt 0)

10+ Year Member



I'm using PHP or I may use Cold Fusion.

stapel

5:41 pm on Jun 10, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You mean you're wanting to write your own script, rather than using a confirmed-secure one?

Are you on "shared" hosting, or are you on your own server? (Why do I ask? Many shared accounts will find custom scripts, being exploitable, are frequently disabled by the web hosts.)

Eliz.

wellbornSun

4:55 am on Jun 17, 2006 (gmt 0)

10+ Year Member



i use ipower, and have never actually done any serve-side scripting, just some basic javaScript, so I really don't know how to make this happen or where to go for instructions.

MichaelBluejay

11:54 am on Jun 19, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Do you not know how to even get a submission form onto your site? If not, then why did you ask about how to *modify* such a form rather than how to *install* such a form?

If you do have the basic form up and running, then like I said, what script are you using for the submission form? One that iPower provides? How did you set it up? Only you are familiar with what you're doing, unless you tell us we can only guess.

wellbornSun

7:36 am on Jun 24, 2006 (gmt 0)

10+ Year Member



OK. No the form is not up and running. The site is up and I am building and adding parts as time permits. I guess I've run up against a huge rock in the learning curve.

Maybe the question I should be asking is, what do I need to learn to add functinality to the form I have designed [contact form], have it show a "thank you" page when it is sumitted and what do I need to know to create a file upload page so users can uploadfiles to my server?

I'm searching the internet for answers, butthere are so many of them, I really don't know what I should be focusing on to learn how to do these things.

Direction...that's what I need...oh, and questions like yours.

thanx

abbeyvet

8:09 am on Jun 24, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



what do I need to learn to add functinality to the form

What you need is a script - a form handler - that will process the form.

This could be a Perl script, a PHP or ASP one or something else, but it is the script that does the work - sends the submission to you, perhaps an acknowledgement to the person who submitted it and creates custom thank you pages and so on.

Most forms start with a tag something like this:

<form action="/directory/form-handler.ext" method="post">

which causes what ever is entered into the form to be sent to form-handler.ext (whatever it real name is) to be processed.

Many hosts provide a form handler for users, some even insist that you use theirs, since there is potential for abuse if a badly constructed handler is used. If yours doesn't, have a look at hotscripts.com, where you will find hundreds, many of them free.

The form handler will come with detailed instructions about how to use it and set it up.

Hope this makes things a little clearer for you. :)

wellbornSun

3:43 pm on Jun 26, 2006 (gmt 0)

10+ Year Member



Yes...it a least points me in the correct direction. Will let all know how it goes.