Hi I have a problem passing form variables to php page. The form first validates the variables using javascript but where it called Action="register.php", it doesn't pass the values of the variables.
Here is the first lines of codes for the form site and php.site
<?php
include("header.php");
include("leftNavBar.php");
?>
<form action="register.php" method="POST" name="rgForm" onsubmit="return regcheck();">
php site
<?php
include("header.php");
include("leftNavBar.php");
if(isset($submit))
{
$dbcn = @mysql_connect("localhost","----","-----");
if(!$dbcn)
{
echo "<p>Error creating database connection: ". mysql_error() ."</p>";
exit;
}
Here is the first lines of codes for the form site and php.site
<?php
include("header.php");
include("leftNavBar.php");
?>
<form action="register.php" method="POST" name="rgForm" onsubmit="return regcheck();">
php site
<?php
include("header.php");
include("leftNavBar.php");
if(isset($submit))
{
$dbcn = @mysql_connect("localhost","----","-----");
if(!$dbcn)
{
echo "<p>Error creating database connection: ". mysql_error() ."</p>";
exit;
}