Log in

View Full Version : submitting form redirect trouble



chriskq
10-11-2008, 12:11 PM
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



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 (http://tinyurl.com/4bhaxr)

(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)

Jesdisciple
10-14-2008, 04:54 PM
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:
$page = 'signUp';
include 'index.php';Variables set in the including code will still be set in the included code.