Hi is this correct?
actually i have declared a,b,c as an array and i want store it in a session and display them i am not even getting error, it is showing blank page......pls help me
is the declaration of an array is correct ?
<?
session_start();
$a=$_POST['a'];
$b=$_POST['b'];
$c=$_POST['c'];
$otherservices=$_POST['otherservices'];
session_register('a');
session_register('b');
session_register('c');
session_register('otherservices');
echo $_SESSION['emailid'];
include("header.php") ?>
<html>
<body>
</body>
</html>
<?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();
?>