I need to create a form that, upon completion, will redirect the user to a specific URL.
December 26, 2005 8:39 AM   Subscribe

Where can I get a script for my websites that will allow me to ask questions of the user, and then, upon completion of filling out the form, that user is redirected to a specific URL?

On my various websites, users can fill in a FORM that uses a script provided by Pair, my server hosting company. Here is an example of one HTML page where I use this script. The output page automatically e-mails me the data.

My question is... How can I accomplish the same thing (requesting answers to various questions), but, instead of that output page being the response for the user, he or she is redirected to a specific URL instead??

I already contacted Pair, but they don't have any other scripts to offer, nor could they provide any advice on altering this one. How, then, would I go about creating or downloading a new one? Or altering the existing one?

I have ten years of HTML and website experience, but my knowledge is very limited in this respect. I would need specific instructions for the script's creation, installation, and usage. Where can I find such instructions?

Thank you!
posted by stst399 to Computers & Internet (5 answers total)
 
Try Matt's script archive
posted by kenchie at 8:47 AM on December 26, 2005


Does your host support php? You can easily find out by uploading a plain text file called something like test.php and containing only the following:

<?
phpinfo();
?>

Visiting the page will obviously work or obviously not work. Post back here with a yes or no and I might be able to provide some help.
posted by john m at 9:32 AM on December 26, 2005


Please do NOT use the Matt's script archive scripts.

As explained here they "aren't very good. The scripts are well known amongst the Perl community to be badly written, buggy, and insecure. Anyone asking for support on Matt's scripts in any forum will be told in no uncertain terms that they shouldn't use his scripts."

As a Perl/PHP/Ruby coder who often has had to support people whose websites were abused because of Matt's scripts, I concur completely.
posted by Kickstart70 at 10:24 AM on December 26, 2005


Err...that link is to better alternatives to Matt's scripts, as I should have mentioned.
posted by Kickstart70 at 10:26 AM on December 26, 2005


Best answer: The cgiemail script that Pair is using lets you specify the page to redirect to by putting its URL in a hidden field called "success".
posted by nicwolff at 10:34 AM on December 26, 2005


« Older Metro West for dummies   |   Where can I find older New Beetle TV commercials? Newer »
This thread is closed to new comments.