Hi Chris,
I suspect this is a free script you've downloaded, so you just fill in the
variables required. It accepts data from a form, stores it in a database, then
sends a thankyou email.
The form has no page to call, which normally calls itself or a process page, so
the user can correct the errors.
If it hits an error, your page redirects:
if (count($errors)) {
$_SESSION['formErrors'] = $errors;
$_SESSION['wFormVars'] = $formVars;
header("Location: " . $locator);
mysql_close();
exit;
}
This will redirect to whatever happens to be in the Switch Case statement
(which isn't filled in).
It's hard to second guess what these pages would do.
Bob.
----- Original Message -----
From: "Chris" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Saturday, February 04, 2006 1:15 PM
Subject: [php-list] PHP Form
> Bearing in mind that there are only 2 pages
> involved - the form page and the thankyou page -
> (If there's any errors, the user stays on the same
> form page, but sees the error messages), I'm not
> sure what to do about the 2 parts below:
>
> <form action="path to contact_script.php"
> method="post" enctype="multipart/form-data"
> name="form_inform">
>
> include_once ('connect_dr.inc');
>
> Form page:
> http://www.130605.com/3/
>
> The code:
> http://www.130605.com/3.phps
Community email addresses:
Post message: [email protected]
Subscribe: [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
List owner: [EMAIL PROTECTED]
Shortcut URL to this page:
http://groups.yahoo.com/group/php-list
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/php-list/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/