Its like this site is a conspiracy, nothing seems to work like it should. I have applied sticky forms plenty of times in the past, this site, they dont work.
I have tried $_POST and $_SESSION, nothing. I have chopped out the html, you will notice I have several different ways I am trying.
<?php if (!isset($_SESSION)) {
session_start();
}
?>
<?php require_once('Connections/assess_remote.php'); ?>
<?php
$county_choice=$_SESSION['county$1'];
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
mysql_select_db($database_assess, $assess_remote);
$query_county_result = "SELECT * FROM counties WHERE name ='checked'";
$county_result = mysql_query($query_county_result, $assess_remote) or die(mysql_error());
$row_county_result = mysql_fetch_assoc($county_result);
$totalRows_county_result = mysql_num_rows($county_result);
?>
<?php
$_SESSION['user_name']=$_POST['user_name'];
$user_name=$_SESSION['user_name'];
?>
<?php $firm_name=$_SESSION['firm_name']; ?>
<?php
if ( !empty($_POST['county']))
foreach ( $_POST['county'] AS $id => $name )
echo 'You have selected '. " {$name}".'<br />';
/*$totalRows_county_result_net= "($totalRows_county_result + 1)".'<br />';
echo "$totalRows_county_result_net";
echo "$totalRows_county_result";*/
?>
<?php $result=$_SESSION[$county_result]; ?>
<?php
/*$name=$_POST['name'];
echo 'You have selected'."$name".'<br />';
echo 'this is the new one'. "$result";*/
?>
<h1>Step 2:</h1><br />
<h3>Create Your Profile</h3>
<p>You may change or update your profile any time you wish by logging into this page.</p>
<table>
<form action="profile_result.php" name="attinput" method="POST" >
<tr><td><label for "user_name">Enter a User Name: *</label></td>
<td><input name="user_name" type="text" <?php if(isset ($_POST['user_name'])) {echo htmlentities($_POST['user_name']);}?> size="25"/></td></tr>
<tr><td><label for "password">Enter a Password:*</label></td>
<td><input name="password" type="text" size="25"/>
</td></tr>
<tr><td><label for "firm_name">Name of Law Firm:* </label></td>
<td><input name="firm_name" type="text" <?php if(isset($_SESSION['firm_name'])) echo $_SESSION['firm_name']?>size="45" /></td></tr>
<tr><td><label for "logo"> Firm Logo </label></td>
<td><input name="logo" input type="file" /></td></tr>
<tr><td>
<label for "fname">First name of Attorney:*</label></td>
<td><input name="fname" type="text"<?php echo((isset($_POST["fname"]))?$_POST["fname"]:"") ?> size="25"/>
<tr><td><label>Initial</label></td><td><input name="initial" type="text" value="<?php echo((isset($_POST["initial"]))?$_POST["initial"]:"") ?>" size="3" /></td></tr>
<tr><td>
<label>Last name of Attorney:*</label></td>
<td><input name="lname" type="text" <?php echo((isset($_POST["lname"]))?$_POST["lname"]:""); ?> size="25"/></td></tr>
<tr><td>Attorney Picture</td><td><input name="att_image" type="file" />
<tr><td>
<label for "street">Street Address:*</label></td><td>
<input name="street" type="text" value="<?php if(isset($_POST['street'])) echo $_POST['street'];?>" size="40"/></td></tr>
<tr><td><label for "suite">
Suite</label></td>
<td> <input name="suite" type="text" size="30"/> </td></tr>
<tr><td> <label for "city">City:*</label></td>
<td><input name="city" type="text"<?php if(isset ($_POST['city'])) {echo htmlentities($_POST['city']);}?> size="30"/></td></tr>
<tr><td><label for "state">State</label></td>
<td><input name="state" type="text" value="<?php echo $choice=$_POST['state'];?>" /></td></tr>
<tr><td> <label for "zip">Zip Code:*</label></td>
<td><input name="zip" type="text" size="10"/></td></tr>
<tr><td> <label for "phone">Phone Number:*</label></td>
<td><input name="phone" type="text" size="20"/></td></tr>
<tr><td> <label for "ext">Ext / Direct Line:*</label></td>
<td><input name="ext" type="text" size="20"/></td></tr>
<tr><td><label for "fax">Fax Numbereliminate</label></td>
<td><input name="fax" type="text" size="20"/></td></tr>
<tr><td><label for "email">E-Mail Address</label></td>
<td><input name="email" type="text" size="30"/></td></tr>
<tr><td><label for "url">Web Site Address</label></td>
<td><input name="url" type="text" size="45" value="http://www." />
</td></tr>
<tr><td><label for "url">Web Blog Address</label></td>
<td><input name="url" type="text" size="45" value="http://www." />
</td></tr>
<tr><td><label for "url"> Contact Page Address</label></td>
<td><input name="url" type="text" size="45" value="http://www." />
</td></tr>
<tr><td><label for "url">Attorney Profile Address</label></td>
<td><input name="url" type="text" size="45" value="http://www." />
</td></tr>
<tr><td><label for "county">County</label></td>
<td><input name="county" type="text" size="45" />
</td></tr>
<tr><td><label for "deadline">Deadline for appeal</label></td>
<td><input name="deadline" type="text" size="25"/>
</td></tr>
<tr><td><label for"description">Description of your firm</label></td>
<td><textarea name="description" cols="45" id="eBann" rows="10" onKeyUp="toCount('eBann','sBann','{CHAR} characters left',4000);"></textarea></td></tr>
<tr><td></td><td><span id="sBann" class="minitext">4000 characters left.</span></td></tr>
<tr>
<td><label for"lawyer_description">Please give a description of attorney</label></td>
<td><textarea name="lawyer_description" cols="45" rows="10"></textarea></td></tr>
<tr>
<td> Check other area's of practice.<br />
<input name="realestate" label="realestate" type="checkbox" value="Real Estate" />Real Estate<br />
<input name="business" label="business" type="checkbox" value="Business" />Business Law<br />
<input name="criminal" label="criminal" type="checkbox" value="Criminal" />Criminal<br />
<input name="bankruptcy" label="bankruptcy" type="checkbox" value="Bankruptcy" />Bankruptcy<br />
<input <?php if (!(strcmp(((isset($_POST["family_law"]))?$_POST["family_law"]:""),"checked"))) {echo "checked=\\"checked\\"";} ?> name="family_law" label="family_law" type="checkbox" value="Family Law" />
Family Law<br />
<input name="labor" label="labor" type="checkbox" value="Labor Law" />Labor Law<br />
<input name="estate" label="estate" type="checkbox" value="estate" />Estate Planning<br />
<input name="pi" label="pi" type="checkbox" value="pi" />Personal Injury<br />
<input name="general" label="general" type="checkbox" value="General" />General Law</td>
</tr>
<tr><td>
<input name="submit" type="submit" value="Submit your Profile" />
<input type="hidden" name="MM_insert" value="attinput" />
</form>
</td></td>
</table>
What could be stopping this?
Thanks
Gary