Hi Guys...
I am writing a shopping cart, starting with a freeby that I found on the Internet.
I am also using a 'login script' that I found on the Internet.
A customer cannot buy unless he is logged in.
When the customer moves to CHECKOUT he is presented with a form to fill in.
Since we already have all the user's details in the database I would like to use this information and pre-fill the form for the user.
This is part of the code in the checkout:
Code:
$name = $row['full_name'];
$output[] = '<tr height="30">';
$output[] = '<td align="right">Your Name: </td>';
$output[] = '<td align="left"><input type="text" name="name" size="30" value=$name </td>';
$output[] = '</tr>';
$name does contain the name of the user.
I cannot get it to fill in the value of $name.
Can anybody help and point me in the right direction ?