RE: [PHP] forms and inputs
You have to put quotes around the value or else you won't get anything pass the space. WRONG: RIGHT: -Original Message- From: Vlad Kulchitski [mailto:[EMAIL PROTECTED]] Sent: March 24, 2002 3:10 PM To: S; [EMAIL PROTECTED] Subject: RE: [PHP] forms and inputs Hi continuing with the same issue I just found another bug in my code. Basically I have a script myfile.php, based on codition it goes through submit process STEP 1 through 4. It takes along the values it has collected via: And so on, on the final stage it submits everything is has collected to the database. What I noticed now is that if I type name with space, like "Mister Simpson" or again like I mentioned before if I type a sentence in step 2 on the final stage it gets lost. You can check how it works here: http://kulchitski.com/btl/btl.php?lang=eng&page=talkroom_submit If anyone knows how to overcome the problem, please help. Thanks, Vlad -Original Message- From: S [mailto:[EMAIL PROTECTED]] Sent: Sunday, March 24, 2002 2:34 PM To: Vlad Kulchitski; [EMAIL PROTECTED] Subject: RE: [PHP] forms and inputs Your input tag should look like this: -Original Message- From: Vlad Kulchitski [mailto:[EMAIL PROTECTED]] Sent: March 24, 2002 1:39 PM To: [EMAIL PROTECTED] Subject: [PHP] forms and inputs Hi, Can anyone suggest anything regarding the following problem. Basically, I ask the user to type a few sentences, in 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] forms and inputs
As the previous poster said you need to have " around your value in your input tag Instead of you need to be using Otherwise the browser is only displaying the first word, this is not a PHP problem, this is a html coding mistake. PHP Code Example: Jason "Vlad Kulchitski" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi continuing with the same issue I just found another bug in my code. Basically I have a script myfile.php, based on codition it goes through submit process STEP 1 through 4. It takes along the values it has collected via: And so on, on the final stage it submits everything is has collected to the database. What I noticed now is that if I type name with space, like "Mister Simpson" or again like I mentioned before if I type a sentence in step 2 on the final stage it gets lost. You can check how it works here: http://kulchitski.com/btl/btl.php?lang=eng&page=talkroom_submit If anyone knows how to overcome the problem, please help. Thanks, Vlad -Original Message- From: S [mailto:[EMAIL PROTECTED]] Sent: Sunday, March 24, 2002 2:34 PM To: Vlad Kulchitski; [EMAIL PROTECTED] Subject: RE: [PHP] forms and inputs Your input tag should look like this: -Original Message- From: Vlad Kulchitski [mailto:[EMAIL PROTECTED]] Sent: March 24, 2002 1:39 PM To: [EMAIL PROTECTED] Subject: [PHP] forms and inputs Hi, Can anyone suggest anything regarding the following problem. Basically, I ask the user to type a few sentences, in 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] forms and inputs
You need to add quotes (" ") arround the PHP variable that displays your text. In your case, it should be something like: -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 > 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 > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] forms and inputs
Hi continuing with the same issue I just found another bug in my code. Basically I have a script myfile.php, based on codition it goes through submit process STEP 1 through 4. It takes along the values it has collected via: And so on, on the final stage it submits everything is has collected to the database. What I noticed now is that if I type name with space, like "Mister Simpson" or again like I mentioned before if I type a sentence in step 2 on the final stage it gets lost. You can check how it works here: http://kulchitski.com/btl/btl.php?lang=eng&page=talkroom_submit If anyone knows how to overcome the problem, please help. Thanks, Vlad -Original Message- From: S [mailto:[EMAIL PROTECTED]] Sent: Sunday, March 24, 2002 2:34 PM To: Vlad Kulchitski; [EMAIL PROTECTED] Subject: RE: [PHP] forms and inputs Your input tag should look like this: -Original Message- From: Vlad Kulchitski [mailto:[EMAIL PROTECTED]] Sent: March 24, 2002 1:39 PM To: [EMAIL PROTECTED] Subject: [PHP] forms and inputs Hi, Can anyone suggest anything regarding the following problem. Basically, I ask the user to type a few sentences, in 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] forms and inputs
Your input tag should look like this: -Original Message- From: Vlad Kulchitski [mailto:[EMAIL PROTECTED]] Sent: March 24, 2002 1:39 PM To: [EMAIL PROTECTED] Subject: [PHP] forms and inputs Hi, Can anyone suggest anything regarding the following problem. Basically, I ask the user to type a few sentences, in 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] forms and inputs
Hi, Can anyone suggest anything regarding the following problem. Basically, I ask the user to type a few sentences, in 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