<?php
if (isset($_SESSION['username'])){
echo "<input title = "Enter your name" name = "realname" size = "46" value = ($_SESSION['username'])/>";
}
else{
echo '<input title= "Enter your name" name = "realname" size = "46" />';
}
?>
This is my code, but I am getting the following error;
Parse error: parse error, unexpected T_STRING, expecting ',' or ';'
This error indicates a problem on the following line
echo "<input title = "Enter your name" name = "realname" size = "46" value = ($_SESSION['username'])/>";
Any ideas? I'm tired and can't find the problem :bemused