Log in

View Full Version : redirecting a page after submitting a form



davindersangha
10-25-2005, 08:54 PM
go to http://www.sassco.co.uk/1index.htm

Type a mobile number (eg 07780972612) into the text box there and click the small button on the right.

Now, this sends a string to the following:

http://www.bchdigital.com/scripts/send_script.php with a few hidden fields automatically in.

It returns a result, something like "OK 4300033"

Problem is that I want it to redirect to another page of my own choice. I've tried the Java redirect things but they dont seem to work.

The Send_script.php doesnt have any re-direct command so I'm lost!!

Twey
10-26-2005, 06:25 AM
I don't think this can be done client-side, or not easily. How about server-side? Do you have a server-side language on your server? You can use an include() to get that data, and add your own redirect code to it before sending it to the user.

davindersangha
10-26-2005, 07:46 AM
Thanks. I thought it was too difficult. It's actually a test for me, with limited help from the server side, so I'll explain in my answer.