After Form Submits, it goes back to the same page
I attached the code, I have looked at it for a long time and can't find anything wrong with it. The data gets submitted the database successfully.
Thanks
I attached the code, I have looked at it for a long time and can't find anything wrong with it. The data gets submitted the database successfully.
Thanks
FYI: I used CSS Form Builder to create the form and DataAssist Insert Single Record.
Thanks again
the following code is preventing the header() function from redirecting the page:
echo "Starting to output current session data";
print_r($HTTP_SESSION_VARS);
if you where to add this code at line 1 to turn error reporting on:
<?php
error_reporting(E_ALL);
ini_set('display_errors','on');
?>
you would see that there is Headers Already Sent error occurring.
the headers already sent error occurs if there is any output to the page before the session-start() or header() functions are called. you code:
the following code is preventing the header() function from redirecting the page:
echo "Starting to output current session data";
print_r($HTTP_SESSION_VARS);
is causing the output to the page, which is preventing the header() function from executing.
Thanks for the quick reply. I removed ..
<?php
// this starts the session
session_start();
// echo variable from the session, we set this on our other page
echo "Starting to output current session data";
print_r($HTTP_SESSION_VARS);
?>
and put in the error output message you showed me. When they page loads, I still get a header error (image attached). When I submit, I sent the second error (image attached).
Sorry, I'm new to php... I guess I was trying to session_start() twice on one page. It's still doing the same thing.
Thanks
header("Location: ".$WA_redirectURL);
see the following page for information on the headers already sent error:
148/
Thank you! It was 1 whitespace after a "?>" !!!!
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.