Results 1 to 3 of 3

Thread: redirecting a page after submitting a form

  1. #1
    Join Date
    Oct 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default redirecting a page after submitting a form

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

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    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.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Oct 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •