Hi, can anybody help please?
using Dreamweaver, php and mysql
I am inserting a record into a table using a form and i also want the email address entered in the form to passed to the redirected page.
i have this....
$insertGoTo = "new_student.php?email="$HTTP_POST_VARS['email']"";
if (isset($_SERVER['QUERY_STRING'])) {
$insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
$insertGoTo .= $_SERVER['QUERY_STRING'];
}
but then i also get this...!!
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\Program Files\Apache Group\Apache2\htdocs\FinalYearProject_Enrolment\Pages\enrol_on_course.php on line 48
can anybody tell me where i'm going wrong, it is something very obvious like a " in wrong place but i can't see the woods for the trees!
thanks very much 😃