People have already answered this question, but here are some additional

Always make sure you include the NAME attribute of an INPUT - otherwise it
can cause some headaches when you try to get the submitted data on the next
page. So:

  <input type="text" name="TrackingNum" value="<?php echo $tracking_num ?>">

You can also shorten the echo/print statement down to:

  <input type="text" name="TrackingNum" value="<?=$tracking_num;?>">

I've heard that you can leave off the semi-colon, but I just consider it
good coding habit to always end statements with semi-colons.

- Jonathan

-----Original Message-----
From: Luis R. Sales Glez. [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 29, 2002 9:30 AM
To: Natividad Castro
Subject: [PHP-DB] Re: displaying info in a form

Hi Natividad & *:

Try to declare the input file as:

<input type=text value="<?php echo $name ?>">

instead of 

<input type=text value=<?php echo $name ?>>


Luis R. Sales Glez.
Database Administrator
Information Systems & Solutions
Sony Latin America Inc.

PHP Database Mailing List (
To unsubscribe, visit:

PHP Database Mailing List (
To unsubscribe, visit:

Reply via email to