if you want to get variables into a form by value= do something like this:
<?php
echo <<<BLOCK
<form action=php_self method=post>
<input type="var1" value=\"var1\"<br>
and so on....


----- Original Message -----
From: "Jason Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 05, 2003 3:59 PM
Subject: Spam: Re: [PHP] Variable Problem


> On Thursday 06 February 2003 04:41, Sierra Times.com wrote:
> > 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
>
> Proper HTML has value items enclosed in quotes: value="SOMETHING"
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.biz
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
> ------------------------------------------
> Search the list archives before you post
> http://marc.theaimsgroup.com/?l=php-general
> ------------------------------------------
> /*
> Liar:
> one who tells an unpleasant truth.
> -- Oliver Herford
> */
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003


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

Reply via email to