Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0
Sanjay Sahu 1 Newbie Poster
Please post your code...
ishlux -3 Junior Poster
<?
session_start();
session_unregister('emailid');
session_register('emailid');
session_unregister('password');
session_register('password');
session_unregister('conpass');
session_register('conpass');
session_unregister('businessname');
session_register('businessname');
session_unregister('streetaddress');
session_register('streetaddress');
session_unregister('zip');
session_register('zip');
session_unregister('phoneareacode');
session_register('phoneareacode');
session_unregister('phoneprefix');
session_register('phoneprefix');
session_unregister('phonesuffix');
session_register('phonesuffix');
session_unregister('faxareacode');
session_register('faxareacode');
session_unregister('faxprefix');
session_register('faxprefix');
session_unregister('faxsuffix');
session_register('faxsuffix');
session_unregister('contactfirstname');
session_register('contactfirstname');
session_unregister('contactlastname');
session_register('contactlastname');
session_unregister('comments');
session_register('comments');
session_unregister('a');
session_register('a');
session_unregister('b');
session_register('b');
session_unregister('c');
session_register('c');
include("header.php") ?>
<html>
<head><title>auto alto</title>
<script>
function comparision(){
d=document.form2;
var total="";
if(!d.contype.length){
if(d.contype.checked) {
d.check_compare.value=d.check_compare.value+d.contype.value+',';
return true;
} else {
alert("Please select check Box");
return false;
}
}
for(var i=0; i < d.contype.length; i++){
if(d.contype[i].checked) {
total +=d.contype[i].value + "\n";
d.check_compare.value=d.check_compare.value+d.contype[i].value+',';
}
}
if(d.check_compare.value=="") {
alert("Please select atleast one check Box");
return false;
}
}
</script>
</head>
<body>
<table width="960" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td width="100%"><? include("top_banner.php") ?></td>
</tr>
<tr>
<td align="center" height="48" width="100%"><? include("horizental_menu.php") ?></td>
</tr>
<table align="center" cellpadding="0" cellspacing="0" width="100%" border="0" class="whitesite" >
<!-- header -->
<tr><td>
<table cellpadding="0" cellspacing="0" width="100%" border="0">
<tr><td background="images/button_bot.jpg" width="100%" height="5" colspan="3"></td></tr>
</table>
</td></tr>
<!-- content -->
<tr><td width="100%">
<table cellpadding="0" cellspacing="0" width="100%" border="0">
<tr>
<td width="5"> </td>
<td width="207" valign="top" class="" align="center">
<table cellpadding="0" cellspacing="0" width="207" border="0" align="center">
<tr><td height="5"></td></tr>
<tr><td align="center" width="207">
<table cellpadding="1" cellspacing="1" width="195" align="center" border="0">
</table>
</td></tr>
<tr><td height="5"></td></tr>
<tr><td height="5"></td></tr>
<tr><td height="5"></td></tr>
</table>
</td>
<td width="5"> </td>
<td valign="top">
<table cellpadding="0" cellspacing="0" width="100%" border="0">
<tr><td height="5"></td></tr>
<tr>
<td width="100%">
<table border="0" cellpadding="0" cellspacing="0" width="100%" align="center">
<tr>
<td><img src="images/box_left.gif" width="10" height="31" alt=""></td>
<td nowrap background="images/box_topbg.gif" width="100%" height="31">
<table cellpadding="0" cellspacing="0" width="100%" border="0">
<tr>
<td style="padding-left:5px;" class="headtitle">Service Provider </td>
</tr>
</table>
<td><img src="images/box_right.gif" width="10" height="31" alt=""></td>
</tr>
<tr>
<td background="images/box_leftbg.gif" width="10"></td>
<td bgcolor="#FFFFFF">
<table cellpadding="0" cellspacing="0" width="100%">
<tr><td height="30">Register now to bid on <b>eGlazers</b> site. It's easy and <b>free</b>. Already registered? <span style="color:005D95"><strong>Sign in now</strong></span>.</td></tr>
<tr><td align="right" colspan="3" style="color:red">[ <span class="error_text">*</span> ] <span class="mandi">indicates required fields</span></td></tr>
<tr><td height="15"></td></tr>
<form name='form2' method='post' action="contractor.php" onsubmit="return comparision(this);" >
<!-- <form name='form1' method='post' action="">-->
<tr><td>
<table border="0" cellpadding="1" cellspacing="5" align="center" width="100%" style="border:1px solid #EDEDED;background-color:#f6f6f6">
<tr><td>
<?php
include('database.php');
$stype=$_POST['category'];
if($stype=="service_category")
{
$result = mysql_query("SELECT * FROM service_category ");
while($row = mysql_fetch_array($result))
{
?>
<input type="Checkbox" id="a[]" value="servicec"><?echo $row['servicec'];
echo "<br />";
}
}
else if($stype=="servicetype")
{
$result = mysql_query("SELECT * FROM service_type ");
while($row = mysql_fetch_array($result))
{
?><input type="Checkbox" id="b[]" value="servicet"> <?echo $row['servicet'];
echo "<br />";
}
}
else if($stype=="services")
{
$result = mysql_query("SELECT * FROM services ");
while($row = mysql_fetch_array($result))
{
?><input type="Checkbox" id="c[]" value="servicess"> <?echo $row['servicess'];
echo "<br />";
}
}
else
{
?>
other services<input type="Text" name="otherservices" id="otherservices" maxlength="30" value="" class="text" " > <span class="error_text" style="vertical-align:top;color:red">*</span>
<?
}
mysql_close();
?>
</td>
</tr>
<tr >
<td colspan="2"></td>
<td><input type='submit' class="button1" name="reg" value="Register"></td></tr>
</table>
</td></tr>
</form>
</table>
</td>
<td background="images/box_rightbg.gif" width="10"></td>
</tr>
<tr>
<td><img src="images/box_botleft.gif" width="10" height="10" alt=""></td>
<td background="images/box_botbg.gif" width="100%" height="10" alt=""></td>
<td><img src="images/box_botright.gif" width="10" height="10" alt=""></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<!-- right nav -->
<td width="5"> </td>
<td width="207" class="borleftright" valign="top" align="center">
<table cellpadding="0" cellspacing="0" width="207" align="center">
<tr><td height="5"></td></tr>
<tr><td align="center" width="207">
<table cellpadding="1" cellspacing="1" width="195" align="center" border="0">
<td></tr>
<tr><td height="5"></td></tr>
</table>
</td></tr>
</table>
</td>
<td width="5"> </td>
</tr>
</table>
</td></tr>
<!-- footer -->
<tr><td background="images/button_bot.jpg" height="7" width="100%"></td></tr>
<tr>
<!-- <td ><div align="center"><img src="images/vertical_line.jpg" alt="auto repair service list mechanic garage dark green line" width="940" height="8" /></div> -->
<? include("footer.php") ?></td>
</tr>
</table>
</body>
</html>
Edited by Dani because: Formatting fixed
ishlux -3 Junior Poster
sorry this is the code.............that was wrong
<?
session_start();
session_unregister('emailid');
session_register('emailid');
session_unregister('password');
session_register('password');
session_unregister('conpass');
session_register('conpass');
session_unregister('businessname');
session_register('businessname');
session_unregister('streetaddress');
session_register('streetaddress');
session_unregister('zip');
session_register('zip');
session_unregister('phoneareacode');
session_register('phoneareacode');
session_unregister('phoneprefix');
session_register('phoneprefix');
session_unregister('phonesuffix');
session_register('phonesuffix');
session_unregister('faxareacode');
session_register('faxareacode');
session_unregister('faxprefix');
session_register('faxprefix');
session_unregister('faxsuffix');
session_register('faxsuffix');
session_unregister('contactfirstname');
session_register('contactfirstname');
session_unregister('contactlastname');
session_register('contactlastname');
session_unregister('comments');
session_register('comments');
include("header.php") ?>
<html>
<body>
<table width="960" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td width="100%"><? include("top_banner.php") ?></td>
</tr>
<tr>
<td align="center" height="48" width="100%"><? include("horizental_menu.php") ?></td>
</tr>
<table align="center" cellpadding="0" cellspacing="0" width="100%" border="0" class="whitesite" >
<!-- header -->
<tr><td>
<table cellpadding="0" cellspacing="0" width="100%" border="0">
<tr><td background="images/button_bot.jpg" width="100%" height="5" colspan="3"></td></tr>
</table>
</td></tr>
<!-- content -->
<tr><td width="100%">
<table cellpadding="0" cellspacing="0" width="100%" border="0">
<tr>
<td width="5"> </td>
<td width="207" valign="top" class="" align="center">
<table cellpadding="0" cellspacing="0" width="207" border="0" align="center">
<tr><td height="5"></td></tr>
<tr><td align="center" width="207">
<table cellpadding="1" cellspacing="1" width="195" align="center" border="0">
</table>
</td></tr>
<tr><td height="5"></td></tr>
<tr><td height="5"></td></tr>
<tr><td height="5"></td></tr>
</table>
</td>
<td width="5"> </td>
<!-- -->
<td valign="top">
<table cellpadding="0" cellspacing="0" width="100%" border="0">
<tr><td height="5"></td></tr>
<tr>
<td width="100%">
<table border="0" cellpadding="0" cellspacing="0" width="100%" align="center">
<tr>
<td><img src="images/box_left.gif" width="10" height="31" alt=""></td>
<td nowrap background="images/box_topbg.gif" width="100%" height="31">
<table cellpadding="0" cellspacing="0" width="100%" border="0">
<tr>
<td style="padding-left:5px;" class="headtitle">
Service Provider Registration
</td>
</tr>
</table>
<td><img src="images/box_right.gif" width="10" height="31" alt=""></td>
</tr>
<tr>
<td background="images/box_leftbg.gif" width="10"></td>
<td bgcolor="#FFFFFF">
<table cellpadding="0" cellspacing="0" width="100%">
<tr><td height="30">Register now to bid on <b>eGlazers</b> site. It's easy and <b>free</b>. Already registered? <span style="color:#005D95"><strong>Sign in now</strong></span>.</td></tr>
<tr><td align="right" colspan="3" style="color:red">[ <span class="error_text">*</span> ] <span class="mandi">indicates required fields</span></td></tr>
<tr><td height="15"></td></tr>
<form name='form2' method='post' action="contractor_services.php" onsubmit="return val_cont(this);" >
<!-- <form name='form1' method='post' action="">-->
<tr><td>
<table border="0" cellpadding="1" cellspacing="5" align="center" width="100%" style="border:1px solid #EDEDED;background-color:#f6f6f6">
<tr>
<td width="35%">Email ID</td>
<td width="3%"><strong>:</strong></td>
<td><input type='text' name='emailid' id="emailid" class="text" size='30' value="" maxlength='50' /> <span class="error_text" style="vertical-align:top;color:red">*</span></td>
</tr>
<tr>
<td>Password</td>
<td><strong>:</strong></td>
<td><input type="Password" name="password" id="password" maxlength="20" class="text" /> <span class="error_text" style="vertical-align:top;color:red">*</span></td>
</tr>
<tr>
<td>Confirm Password</td>
<td><strong>:</strong></td>
<td><input type="Password" name="conpass" id="conpass" maxlength="20" class="text" /> <span class="error_text" style="vertical-align:top;color:red">*</span></td>
</tr>
<tr>
<td>Business Name</td>
<td><strong>:</strong></td>
<td><input type="Text" name="businessname"
id="businessname" maxlength="30" value="" class="text" " > <span class="error_text" style="vertical-align:top;color:red">*</span></td>
</tr>
<tr>
<td>Street Address</td>
<td><strong>:</strong></td>
<td><input type="Text" name="streetaddress" class="text" value="" id="streetaddress" /> <span class="error_text" style="vertical-align:top;color:red">*</span></td>
</tr>
<tr>
<td>Zip Code</td>
<td><strong>:</strong></td>
<td><input type='text' name="zip" value="" class="text" maxlength='5' id="zip" > <span class="error_text" style="vertical-align:top;color:red">*</span></td>
</tr>
<tr>
<td valign="top">Phone</td>
<td valign="top"><strong>:</strong></td>
<td><input type='text' class="num" value="" name="phoneareacode" id="phoneareacode" size='5' maxlength='3'> - <input type='text' class="num" name="phoneprefix" value="" size="5" maxlength='3' id="phoneprefix" > - <input type='text' name="phonesuffix" value="" class="num" size='5' maxlength='4'
id="phonesuffix"
> <span class="error_text" style="vertical-align:top;color:red">*</span> <font color="#808080" style="font-size:11px;">(Eg., 213 - 555 - 1212)</font></td>
</tr>
<tr>
<td valign="top">Fax</td>
<td valign="top"><strong>:</strong></td>
<td><input type='text' class="num" name="faxareacode" id="faxareacode" value="" size='5' maxlength='3' > - <input type='text' class="num" name="faxprefix" id="faxprefix" value="" size='5' maxlength='3' > - <input type='text' name="faxsuffix" id="faxsuffix"
value="" class="num" size='5' maxlength='4' > <span class="error_text" style="vertical-align:top;color:red">*</span> <font color="#808080" style="font-size:11px;">(Eg., 213 - 555 - 1212)</font></td>
</tr>
<tr>
<td>Contractor First name</td>
<td><strong>:</strong></td>
<td><input type='text' name="contactfirstname"
id="contactfirstname"
value="" class="text" size='30' maxlength='20' > <span class="error_text" style="vertical-align:top;color:red">*</span></td>
</tr>
<tr>
<td>Contractor Last name</td>
<td><strong>:</strong></td>
<td><input type='text' name="contactlastname"
id="contactlastname"
value="" class="text" size='30' maxlength='20' > <span class="error_text" style="vertical-align:top;color:red">*</span></td>
</tr>
<tr>
<td valign="top">Comments</td>
<td valign="top"><strong>:</strong></td>
<td><textarea name="comments" id="comments" rows="7" cols="60" class="textarea"></textarea></td>
</tr>
<tr ><td colspan="2"></td><td><input type='submit' class="button1" name="reg" value="Next"></td></tr>
</table>
</td></tr>
</form>
</table>
</td>
<td background="images/box_rightbg.gif" width="10"></td>
</tr>
<tr>
<td><img src="images/box_botleft.gif" width="10" height="10" alt=""></td>
<td background="images/box_botbg.gif" width="100%" height="10" alt=""></td>
<td><img src="images/box_botright.gif" width="10" height="10" alt=""></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<!-- right nav -->
<td width="5"> </td>
<td width="207" class="borleftright" valign="top" align="center">
<table cellpadding="0" cellspacing="0" width="207" align="center">
<tr><td height="5"></td></tr>
<tr><td align="center" width="207">
<table cellpadding="1" cellspacing="1" width="195" align="center" border="0">
<td></tr>
<tr><td height="5"></td></tr>
</table>
</td></tr>
</table>
</td>
<td width="5"> </td>
</tr>
</table>
</td></tr>
<!-- footer -->
<tr><td background="images/button_bot.jpg" height="7" width="100%"></td></tr>
<tr>
<!-- <td ><div align="center"><img src="images/vertical_line.jpg" alt="auto repair service list mechanic garage dark green line" width="940" height="8" /></div> -->
<? include("footer.php") ?></td>
</tr>
</table>
</body>
</html>
Sanjay Sahu 1 Newbie Poster
try this:
<?
session_start();
if($_SERVER['REQUEST_METHOD']=='POST')
{
session_unregister('emailid');
session_register('emailid');
$_SESSION['emailid']=$_POST['emailid'];
session_unregister('password');
session_register('password');
$_SESSION['password']=$_POST['password'];
session_unregister('conpass');
session_register('conpass');
$_SESSION['conpass']=$_POST['conpass'];
session_unregister('businessname');
session_register('businessname');
$_SESSION['businessname']=$_POST['businessname'];
session_unregister('streetaddress');
session_register('streetaddress');
$_SESSION['streetaddress']=$_POST['streetaddress'];
session_unregister('zip');
session_register('zip');
$_SESSION['zip']=$_POST['zip'];\
session_unregister('phoneareacode');
session_register('phoneareacode');
$_SESSION['phoneareacode']=$_POST['phoneareacode'];
session_unregister('phoneprefix');
session_register('phoneprefix');
$_SESSION['phoneprefix']=$_POST['emailid'];
session_unregister('phonesuffix');
session_register('phonesuffix');
$_SESSION['phonesuffix']=$_POST['phonesuffix'];
session_unregister('faxareacode');
session_register('faxareacode');
$_SESSION['faxareacode']=$_POST['faxareacode'];
session_unregister('faxprefix');
session_register('faxprefix');
$_SESSION['faxprefix']=$_POST['faxprefix'];
session_unregister('faxsuffix');
session_register('faxsuffix');
$_SESSION['faxsuffix']=$_POST['faxsuffix'];
session_unregister('contactfirstname');
session_register('contactfirstname');
$_SESSION['contactfirstname']=$_POST['contactfirstname'];
session_unregister('contactlastname');
session_register('contactlastname');
$_SESSION['contactlastname']=$_POST['contactlastname'];
session_unregister('comments');
session_register('comments');
$_SESSION['comments']=$_POST['comments'];
echo'<script language="javascript">window.location.href="contractor_services.php";</script>';
}
?>
<html>
<body>
<table width="960" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td ></td>
</tr>
<tr>
<td align="center" height="48"></td>
</tr>
<table align="center" cellpadding="0" cellspacing="0" width="100%" border="0" class="whitesite" >
<!-- header -->
<tr><td>
<table cellpadding="0" cellspacing="0" width="100%" border="0">
<tr><td background="images/button_bot.jpg" width="100%" height="5" colspan="3"></td></tr>
</table>
</td></tr>
<!-- content -->
<tr><td width="100%">
<table cellpadding="0" cellspacing="0" width="100%" border="0">
<tr>
<td width="5"> </td>
<td width="207" valign="top" class="" align="center">
<table cellpadding="0" cellspacing="0" width="207" border="0" align="center">
<tr><td height="5"></td></tr>
<tr><td align="center" width="207">
<table cellpadding="1" cellspacing="1" width="195" align="center" border="0">
</table>
</td></tr>
<tr><td height="5"></td></tr>
<tr><td height="5"></td></tr>
<tr><td height="5"></td></tr>
</table>
</td>
<td width="5"> </td>
<!-- -->
<td valign="top">
<table cellpadding="0" cellspacing="0" width="100%" border="0">
<tr><td height="5"></td></tr>
<tr>
<td width="100%">
<table border="0" cellpadding="0" cellspacing="0" width="100%" align="center">
<tr>
<td><img src="images/box_left.gif" width="10" height="31" alt=""></td>
<td nowrap background="images/box_topbg.gif" width="100%" height="31">
<table cellpadding="0" cellspacing="0" width="100%" border="0">
<tr>
<td style="padding-left:5px;" class="headtitle">
Service Provider Registration
</td>
</tr>
</table>
<td><img src="images/box_right.gif" width="10" height="31" alt=""></td>
</tr>
<tr>
<td background="images/box_leftbg.gif" width="10"></td>
<td bgcolor="#FFFFFF">
<table cellpadding="0" cellspacing="0" width="100%">
<tr><td height="30">Register now to bid on <b>eGlazers</b> site. Its easy and <b>free</b>. Already registered? <span style="color:#005D95"><strong>Sign in now</strong></span>.</td></tr>
<tr><td align="right" colspan="3" style="color:red">[ <span class="error_text">*</span> ] <span class="mandi">indicates required fields</span></td></tr>
<tr><td height="15"></td></tr>
<form name='form2' method='post' action="" onSubmit="return val_cont(this);" >
<!-- <form name='form1' method='post' action="">-->
<tr><td>
<table border="0" cellpadding="1" cellspacing="5" align="center" width="100%" style="border:1px solid #EDEDED;background-color:#f6f6f6">
<tr>
<td width="35%">Email ID</td>
<td width="3%"><strong>:</strong></td>
<td><input type='text' name='emailid' id="emailid" class="text" size='30' value="" maxlength='50' /> <span class="error_text" style="vertical-align:top;color:red">*</span></td>
</tr>
<tr>
<td>Password</td>
<td><strong>:</strong></td>
<td><input type="Password" name="password" id="password" maxlength="20" class="text" /> <span class="error_text" style="vertical-align:top;color:red">*</span></td>
</tr>
<tr>
<td>Confirm Password</td>
<td><strong>:</strong></td>
<td><input type="Password" name="conpass" id="conpass" maxlength="20" class="text" /> <span class="error_text" style="vertical-align:top;color:red">*</span></td>
</tr>
<tr>
<td>Business Name</td>
<td><strong>:</strong></td>
<td><input type="Text" name="businessname"
id="businessname" maxlength="30" value="" class="text" > <span class="error_text" style="vertical-align:top;color:red">*</span></td>
</tr>
<tr>
<td>Street Address</td>
<td><strong>:</strong></td>
<td><input type="Text" name="streetaddress" class="text" value="" id="streetaddress" /> <span class="error_text" style="vertical-align:top;color:red">*</span></td>
</tr>
<tr>
<td>Zip Code</td>
<td><strong>:</strong></td>
<td><input type='text' name="zip" value="" class="text" maxlength='5' id="zip" > <span class="error_text" style="vertical-align:top;color:red">*</span></td>
</tr>
<tr>
<td valign="top">Phone</td>
<td valign="top"><strong>:</strong></td>
<td><input type='text' class="num" value="" name="phoneareacode" id="phoneareacode" size='5' maxlength='3'> - <input type='text' class="num" name="phoneprefix" value="" size="5" maxlength='3' id="phoneprefix" > - <input type='text' name="phonesuffix" value="" class="num" size='5' maxlength='4'
id="phonesuffix"
> <span class="error_text" style="vertical-align:top;color:red">*</span> <font color="#808080" style="font-size:11px;">(Eg., 213 - 555 - 1212)</font></td>
</tr>
<tr>
<td valign="top">Fax</td>
<td valign="top"><strong>:</strong></td>
<td><input type='text' class="num" name="faxareacode" id="faxareacode" value="" size='5' maxlength='3' > - <input type='text' class="num" name="faxprefix" id="faxprefix" value="" size='5' maxlength='3' > - <input type='text' name="faxsuffix" id="faxsuffix"
value="" class="num" size='5' maxlength='4' > <span class="error_text" style="vertical-align:top;color:red">*</span> <font color="#808080" style="font-size:11px;">(Eg., 213 - 555 - 1212)</font></td>
</tr>
<tr>
<td>Contractor First name</td>
<td><strong>:</strong></td>
<td><input type='text' name="contactfirstname"
id="contactfirstname"
value="" class="text" size='30' maxlength='20' > <span class="error_text" style="vertical-align:top;color:red">*</span></td>
</tr>
<tr>
<td>Contractor Last name</td>
<td><strong>:</strong></td>
<td><input type='text' name="contactlastname"
id="contactlastname"
value="" class="text" size='30' maxlength='20' > <span class="error_text" style="vertical-align:top;color:red">*</span></td>
</tr>
<tr>
<td valign="top">Comments</td>
<td valign="top"><strong>:</strong></td>
<td><textarea name="comments" id="comments" rows="7" cols="60" class="textarea"></textarea></td>
</tr>
<tr ><td colspan="2"></td><td><input type='submit' class="button1" name="reg" value="Next"></td></tr>
</table>
</td></tr>
</form>
</table>
</td>
<td background="images/box_rightbg.gif" width="10"></td>
</tr>
<tr>
<td><img src="images/box_botleft.gif" width="10" height="10" alt=""></td>
<td background="images/box_botbg.gif" width="100%" height="10" alt=""></td>
<td><img src="images/box_botright.gif" width="10" height="10" alt=""></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<!-- right nav -->
<td width="5"> </td>
<td width="207" class="borleftright" valign="top" align="center">
<table cellpadding="0" cellspacing="0" width="207" align="center">
<tr><td height="5"></td></tr>
<tr><td align="center" width="207">
<table cellpadding="1" cellspacing="1" width="195" align="center" border="0">
<td></tr>
<tr><td height="5"></td></tr>
</table>
</td></tr>
</table>
</td>
<td width="5"> </td>
</tr>
</table>
</td></tr>
<!-- footer -->
<tr><td background="images/button_bot.jpg" height="7" width="100%"></td></tr>
<tr>
<!-- <td ><div align="center"><img src="images/vertical_line.jpg" alt="auto repair service list mechanic garage dark green line" width="940" height="8" /></div> -->
</td>
</tr>
</table>
</body>
</html>
ishlux -3 Junior Poster
Hi
$_SESSION=$_POST;
Why it is required...............
nav33n 472 Purple hazed! Team Colleague Featured Poster
sorry this is the code.............that was wrong
<?
session_start();
session_unregister('emailid');
session_register('emailid');
session_unregister('password');
session_register('password');
session_unregister('conpass');
session_register('conpass');
session_unregister('businessname');
session_register('businessname');
session_unregister('streetaddress');
session_register('streetaddress');
session_unregister('zip');
session_register('zip');
session_unregister('phoneareacode');
session_register('phoneareacode');
session_unregister('phoneprefix');
session_register('phoneprefix');
session_unregister('phonesuffix');
session_register('phonesuffix');
session_unregister('faxareacode');
session_register('faxareacode');
session_unregister('faxprefix');
session_register('faxprefix');
session_unregister('faxsuffix');
session_register('faxsuffix');
session_unregister('contactfirstname');
session_register('contactfirstname');
session_unregister('contactlastname');
session_register('contactlastname');
session_unregister('comments');
session_register('comments');
include("header.php") ?>
<html>
<body>
<table width="960" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td width="100%"><? include("top_banner.php") ?></td>
</tr>
<tr>
<td align="center" height="48" width="100%"><? include("horizental_menu.php") ?></td>
</tr>
<table align="center" cellpadding="0" cellspacing="0" width="100%" border="0" class="whitesite" >
<!-- header -->
<tr><td>
<table cellpadding="0" cellspacing="0" width="100%" border="0">
<tr><td background="images/button_bot.jpg" width="100%" height="5" colspan="3"></td></tr>
</table>
</td></tr>
<!-- content -->
<tr><td width="100%">
<table cellpadding="0" cellspacing="0" width="100%" border="0">
<tr>
<td width="5"> </td>
<td width="207" valign="top" class="" align="center">
<table cellpadding="0" cellspacing="0" width="207" border="0" align="center">
<tr><td height="5"></td></tr>
<tr><td align="center" width="207">
<table cellpadding="1" cellspacing="1" width="195" align="center" border="0">
</table>
</td></tr>
<tr><td height="5"></td></tr>
<tr><td height="5"></td></tr>
<tr><td height="5"></td></tr>
</table>
</td>
<td width="5"> </td>
<!-- -->
<td valign="top">
<table cellpadding="0" cellspacing="0" width="100%" border="0">
<tr><td height="5"></td></tr>
<tr>
<td width="100%">
<table border="0" cellpadding="0" cellspacing="0" width="100%" align="center">
<tr>
<td><img src="images/box_left.gif" width="10" height="31" alt=""></td>
<td nowrap background="images/box_topbg.gif" width="100%" height="31">
<table cellpadding="0" cellspacing="0" width="100%" border="0">
<tr>
<td style="padding-left:5px;" class="headtitle">
Service Provider Registration
</td>
</tr>
</table>
<td><img src="images/box_right.gif" width="10" height="31" alt=""></td>
</tr>
<tr>
<td background="images/box_leftbg.gif" width="10"></td>
<td bgcolor="#FFFFFF">
<table cellpadding="0" cellspacing="0" width="100%">
<tr><td height="30">Register now to bid on <b>eGlazers</b> site. It's easy and <b>free</b>. Already registered? <span style="color:#005D95"><strong>Sign in now</strong></span>.</td></tr>
<tr><td align="right" colspan="3" style="color:red">[ <span class="error_text">*</span> ] <span class="mandi">indicates required fields</span></td></tr>
<tr><td height="15"></td></tr>
<form name='form2' method='post' action="contractor_services.php" onsubmit="return val_cont(this);" >
<!-- <form name='form1' method='post' action="">-->
<tr><td>
<table border="0" cellpadding="1" cellspacing="5" align="center" width="100%" style="border:1px solid #EDEDED;background-color:#f6f6f6">
<tr>
<td width="35%">Email ID</td>
<td width="3%"><strong>:</strong></td>
<td><input type='text' name='emailid' id="emailid" class="text" size='30' value="" maxlength='50' /> <span class="error_text" style="vertical-align:top;color:red">*</span></td>
</tr>
<tr>
<td>Password</td>
<td><strong>:</strong></td>
<td><input type="Password" name="password" id="password" maxlength="20" class="text" /> <span class="error_text" style="vertical-align:top;color:red">*</span></td>
</tr>
<tr>
<td>Confirm Password</td>
<td><strong>:</strong></td>
<td><input type="Password" name="conpass" id="conpass" maxlength="20" class="text" /> <span class="error_text" style="vertical-align:top;color:red">*</span></td>
</tr>
<tr>
<td>Business Name</td>
<td><strong>:</strong></td>
<td><input type="Text" name="businessname"
id="businessname" maxlength="30" value="" class="text" " > <span class="error_text" style="vertical-align:top;color:red">*</span></td>
</tr>
<tr>
<td>Street Address</td>
<td><strong>:</strong></td>
<td><input type="Text" name="streetaddress" class="text" value="" id="streetaddress" /> <span class="error_text" style="vertical-align:top;color:red">*</span></td>
</tr>
<tr>
<td>Zip Code</td>
<td><strong>:</strong></td>
<td><input type='text' name="zip" value="" class="text" maxlength='5' id="zip" > <span class="error_text" style="vertical-align:top;color:red">*</span></td>
</tr>
<tr>
<td valign="top">Phone</td>
<td valign="top"><strong>:</strong></td>
<td><input type='text' class="num" value="" name="phoneareacode" id="phoneareacode" size='5' maxlength='3'> - <input type='text' class="num" name="phoneprefix" value="" size="5" maxlength='3' id="phoneprefix" > - <input type='text' name="phonesuffix" value="" class="num" size='5' maxlength='4'
id="phonesuffix"
> <span class="error_text" style="vertical-align:top;color:red">*</span> <font color="#808080" style="font-size:11px;">(Eg., 213 - 555 - 1212)</font></td>
</tr>
<tr>
<td valign="top">Fax</td>
<td valign="top"><strong>:</strong></td>
<td><input type='text' class="num" name="faxareacode" id="faxareacode" value="" size='5' maxlength='3' > - <input type='text' class="num" name="faxprefix" id="faxprefix" value="" size='5' maxlength='3' > - <input type='text' name="faxsuffix" id="faxsuffix"
value="" class="num" size='5' maxlength='4' > <span class="error_text" style="vertical-align:top;color:red">*</span> <font color="#808080" style="font-size:11px;">(Eg., 213 - 555 - 1212)</font></td>
</tr>
<tr>
<td>Contractor First name</td>
<td><strong>:</strong></td>
<td><input type='text' name="contactfirstname"
id="contactfirstname"
value="" class="text" size='30' maxlength='20' > <span class="error_text" style="vertical-align:top;color:red">*</span></td>
</tr>
<tr>
<td>Contractor Last name</td>
<td><strong>:</strong></td>
<td><input type='text' name="contactlastname"
id="contactlastname"
value="" class="text" size='30' maxlength='20' > <span class="error_text" style="vertical-align:top;color:red">*</span></td>
</tr>
<tr>
<td valign="top">Comments</td>
<td valign="top"><strong>:</strong></td>
<td><textarea name="comments" id="comments" rows="7" cols="60" class="textarea"></textarea></td>
</tr>
<tr ><td colspan="2"></td><td><input type='submit' class="button1" name="reg" value="Next"></td></tr>
</table>
</td></tr>
</form>
</table>
</td>
<td background="images/box_rightbg.gif" width="10"></td>
</tr>
<tr>
<td><img src="images/box_botleft.gif" width="10" height="10" alt=""></td>
<td background="images/box_botbg.gif" width="100%" height="10" alt=""></td>
<td><img src="images/box_botright.gif" width="10" height="10" alt=""></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<!-- right nav -->
<td width="5"> </td>
<td width="207" class="borleftright" valign="top" align="center">
<table cellpadding="0" cellspacing="0" width="207" align="center">
<tr><td height="5"></td></tr>
<tr><td align="center" width="207">
<table cellpadding="1" cellspacing="1" width="195" align="center" border="0">
<td></tr>
<tr><td height="5"></td></tr>
</table>
</td></tr>
</table>
</td>
<td width="5"> </td>
</tr>
</table>
</td></tr>
<!-- footer -->
<tr><td background="images/button_bot.jpg" height="7" width="100%"></td></tr>
<tr>
<!-- <td ><div align="center"><img src="images/vertical_line.jpg" alt="auto repair service list mechanic garage dark green line" width="940" height="8" /></div> -->
<? include("footer.php") ?></td>
</tr>
</table>
</body>
</html>
IT WOULD BE REALLY HELPFUL IF YOU USE OF CODE-TAGS. YOU HAVE 34 POSTS AND YOU STILL HAVEN'T READ THE RULES ?
Lets see if my "yelling" has any effect on him.
Edited by mike_2000_17 because: Fixed formatting
ishlux -3 Junior Poster
Hi.........
i am not getting the error.............but its storing the empty values in the database.........
Sanjay Sahu 1 Newbie Poster
I dont know , where you are going to store your values into database in the above code...
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.