You need to put quotes around the vars.

If I were you I would do this:

print "<input type=text name=sent value=\"$sent\">";
print "<input type=text name=name value=\"$name\">";


You need the quotes.

Leonard.
www.phpna.com

-----Original Message-----
From: Sierra Times.com [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 05, 2003 3:41 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Variable Problem


I have a variable that get's chopped off at the %20 character.

In the form page I have:
<b>From: <?= $name;?>
      <br>E-mail address: <?= $email;?><br>
       <?= $sent;?></b></font></td>

$sent and $name shows up fine, but immedieately I added (for testing)

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

this statement shows a text box, with only the first word before the space
charcter "%20" is shown, and is fact the only data that is submitted upon:
<form action="<?=$PHP_SELF;?>" method="post">

Can someone assist me?

J.J. Johnson



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to