Results 1 to 2 of 2

Thread: submitting form redirect trouble

  1. #1
    Join Date
    Apr 2007
    Location
    Sydney, Aust - Downunder
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Angry submitting form redirect trouble

    i have a sign up form that is hidden on the homepage and when you click a tab or come from another online promotion you hit index.php?signUp and the form slides down from the top of the browser.

    the problem i have is when i want to show an error msg – when i try and use the php code


    Code:
    else {
    // not valid email..
    $errorStrSignUp = "Please enter a valid email adress & fields marked*";
    include "index.php?signUp";
    }
    (the rest of the code works)

    it just stalls on the controller page... it doesnt like the query on the end of .php

    any ideas?

    it is in action here
    test site

    (but the controller is currently pointing to just index.php and i have the error in the banner visible – but i would really like to display the it in the form instead)

  2. #2
    Join Date
    Jul 2006
    Posts
    497
    Thanks
    8
    Thanked 70 Times in 70 Posts

    Default

    What does the segment of index.php which handles the GET data look like? My solution will depend on that, but here's the idea:
    Code:
    $page = 'signUp';
    include 'index.php';
    Variables set in the including code will still be set in the included code.
    -- Chris
    informal JavaScript student of Douglas Crockford
    I like wikis - a lot.

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
  •