I want to passe email variable.
here is the code
<form action="reply.php" method="POST">
<label style="background-color: white;width: 300px; color: black;">
<?php echo 'To'.' '.' '.$_SESSION['email'];
$email=$_SESSION['email'];
?>
</label>
<input type="hidden" name="email" value="<?php $email?>" />
<textarea class="text-input textarea" id="wysiwyg" name="emailbody" rows="10" cols="75">
<?php
include_once '../../Classes/DBhandling.php';
$dob = new DBhandling(dbHost,dbUser,dbName,dbPass);
$dob->connectDB();
$msgId=$_GET["var1"];//message id
$qrysel="select * from messages where id='$msgId'";
$result= mysql_query($qrysel);
while ($row=mysql_fetch_array($result)){
echo 'subject: '.$row['subject']."<br>";
echo $row['title'].$row['name']."<br>";
echo "Message is: ";
echo $row['message'];
echo "<br>";
echo $row['email']."<br>";
$_SESSION['email']=$row['email'];
echo $row['date']."<br>";
}
session_commit();
?>
</textarea>
<input type="submit" value="Submit" class="btn" />
</form>
can anybody fingure the problem I get all data except the email.
thx in advance ,
Menuka

New Topic/Question
Reply



MultiQuote



|