Re: forms and inputs

From: Date: Sun, 24 Mar 2002 20:06:39 +0000
Subject: Re: forms and inputs
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-89928@lists.php.net to get a copy of this message
You need to add quotes (" ") arround the PHP variable that displays your text. In your case, it should be something like: <?php echo "$text"; ?> -john On Sun, 24 Mar 2002, Vlad Kulchitski wrote: > Hi, > > Can anyone suggest anything regarding the following problem. > > Basically, I ask the user to type a few sentences, in > <input type=text name=name> and on the next page I show everything > s/he typed asking "Are you sure you want to submit this... > > Once clicked "YES" all data is being taken to the next page for > FINAL submission to mysql. (all is done in one php script though) > > But anyway, the problem is that when I see the final data in the > database, there's only 1 word from the sentence the used has typed > in, i.e if I submit "Hello my name is Vlad", the only word that will > end up in the database would be "Hello". What is the best solution to > overcome this? > > Thanks, > Vlad > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#89928) next »