RE: [PHP] forms and inputs

2002-03-24 Thread S

Your input tag should look like this:
input type=text name=myvariable value=Hello my name is Vlad


-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 
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




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




RE: [PHP] forms and inputs

2002-03-24 Thread Vlad Kulchitski

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:

form

input type=hidden name=name

/form

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=engpage=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:
input type=text name=myvariable value=Hello my name is Vlad


-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 
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




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




Re: [PHP] forms and inputs

2002-03-24 Thread [-^-!-%-



 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



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




Re: [PHP] forms and inputs

2002-03-24 Thread Jason Sheets

As the previous poster said you need to have  around your value in your
input tag

Instead of input type=text name=fname_eng size='20' maxlength='18'
value=Jason J you need to be using input type=text name=fname_eng
size='20' maxlength='18' value=Jason J

Otherwise the browser is only displaying the first word, this is not a PHP
problem, this is a html coding mistake.

PHP Code Example:

input type=text name=fname_eng size='20' maxlength='18' value=?php echo
$_POST['fname']; ?

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:

form

input type=hidden name=name

/form

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=engpage=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:
input type=text name=myvariable value=Hello my name is Vlad


-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
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






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




RE: [PHP] forms and inputs

2002-03-24 Thread S

You have to put quotes around the value or else you won't get anything pass
the space.

WRONG:
input type=hidden name=fname_eng value=Bob J.

RIGHT:
input type=hidden name=fname_eng value=Bob J.




-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:

form

input type=hidden name=name

/form

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=engpage=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:
input type=text name=myvariable value=Hello my name is Vlad


-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
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





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