Re: [PHP] Text data truncated after first blank character in form fields

2003-02-18 Thread rentAweek support
Errnest

Thanks. I used htlmentities and still have the truncation.

Mike

---

Ernest E Vogelsinger wrote:


At 22:04 17.02.2003, Michael Eacott said:
[snip]


When I have the following in a form:
?php $testvar = a b c; ?
input type=text size=20 name=testvar value=?php echo $testvar; ?
the value shown in the form field is   a and not a b c
why?
and how can I get to see the untrucated text, please?


[snip] 

You should always place quotes around the Value parameter;

input type=text size=20 name=testvar value=?php echo $testvar; ?

Additionally you should always htmlencode the value parameter:

input type=text size=20 name=testvar 
value=?php echo htmlentities($testvar); ?







Re: [PHP] Text data truncated after first blank character in form fields

2003-02-18 Thread rentAweek support
Kevin

I tried flushing and also IE 6 and Netscape  6.2. Still getting truncation.

Mike

---

Kevin Stone wrote:


Hmm.  Don't know what to tell ya.  It works on my computer.  Have you tried
pressing CTRL+F5 to flush your browser cache?
- Kevin

- Original Message -
From: rentAweek support [EMAIL PROTECTED]
To: Kevin Stone [EMAIL PROTECTED]
Cc: Michael Eacott [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Monday, February 17, 2003 3:12 PM
Subject: Re: [PHP] Text data truncated after first blank character in form
fields



Thanks

I tried our your suggestion sic:
input type=text size=20 name=testvar value=?php echo $testvar;


?


Still truncation

Mike
---
Kevin Stone wrote:


It's your HTML  Failing to enclose the value in quotes may lead to
truncation.  Your output looks like this...
input type=text size=20 name=testvar value=a b c

You should always quote every parmeter in the tag just to avoid such
problems.  This should work..
input type=text size=20 name=testvar value=?php echo


$testvar;?


- Kevin

















Re: [PHP] Text data truncated after first blank character in form fields

2003-02-18 Thread Ernest E Vogelsinger
At 09:27 18.02.2003, rentAweek support said:
[snip]
Errnest

Thanks. I used htlmentities and still have the truncation.

[snip] 

Have a look at the HTML source the server transmits.


-- 
   O Ernest E. Vogelsinger
   (\)ICQ #13394035
^ http://www.vogelsinger.at/



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




[PHP] Text data truncated after first blank character in form fields

2003-02-17 Thread Michael Eacott
When I have the following in a form:
?php $testvar = a b c; ?
input type=text size=20 name=testvar value=?php echo $testvar; ?
the value shown in the form field is   a and not a b c
why?
and how can I get to see the untrucated text, please?

Mike


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




Re: [PHP] Text data truncated after first blank character in form fields

2003-02-17 Thread Kevin Stone
It's your HTML  Failing to enclose the value in quotes may lead to
truncation.  Your output looks like this...
input type=text size=20 name=testvar value=a b c

You should always quote every parmeter in the tag just to avoid such
problems.  This should work..
input type=text size=20 name=testvar value=?php echo $testvar;?

- Kevin


- Original Message -
From: Michael Eacott [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 17, 2003 2:04 PM
Subject: [PHP] Text data truncated after first blank character in form
fields


 When I have the following in a form:
 ?php $testvar = a b c; ?
 input type=text size=20 name=testvar value=?php echo $testvar; ?
 the value shown in the form field is   a and not a b c
 why?
 and how can I get to see the untrucated text, please?

 Mike


 --
 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] Text data truncated after first blank character in form fields

2003-02-17 Thread rentAweek support
Thanks

I tried our your suggestion sic:
input type=text size=20 name=testvar value=?php echo $testvar; ?
Still truncation

Mike
---
Kevin Stone wrote:


It's your HTML  Failing to enclose the value in quotes may lead to
truncation.  Your output looks like this...
input type=text size=20 name=testvar value=a b c

You should always quote every parmeter in the tag just to avoid such
problems.  This should work..
input type=text size=20 name=testvar value=?php echo $testvar;?

- Kevin















Re: [PHP] Text data truncated after first blank character in form fields

2003-02-17 Thread Kevin Stone
Hmm.  Don't know what to tell ya.  It works on my computer.  Have you tried
pressing CTRL+F5 to flush your browser cache?
- Kevin

- Original Message -
From: rentAweek support [EMAIL PROTECTED]
To: Kevin Stone [EMAIL PROTECTED]
Cc: Michael Eacott [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Monday, February 17, 2003 3:12 PM
Subject: Re: [PHP] Text data truncated after first blank character in form
fields


 Thanks

 I tried our your suggestion sic:
 input type=text size=20 name=testvar value=?php echo $testvar;
?
 Still truncation

 Mike
 ---
 Kevin Stone wrote:

 It's your HTML  Failing to enclose the value in quotes may lead to
 truncation.  Your output looks like this...
 input type=text size=20 name=testvar value=a b c
 
 You should always quote every parmeter in the tag just to avoid such
 problems.  This should work..
 input type=text size=20 name=testvar value=?php echo
$testvar;?
 
 - Kevin
 

 
 
 
 
 





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




Re: [PHP] Text data truncated after first blank character in form fields

2003-02-17 Thread Ernest E Vogelsinger
At 22:04 17.02.2003, Michael Eacott said:
[snip]
When I have the following in a form:
?php $testvar = a b c; ?
input type=text size=20 name=testvar value=?php echo $testvar; ?
the value shown in the form field is   a and not a b c
why?
and how can I get to see the untrucated text, please?
[snip] 

You should always place quotes around the Value parameter;

input type=text size=20 name=testvar value=?php echo $testvar; ?

Additionally you should always htmlencode the value parameter:

input type=text size=20 name=testvar 
 value=?php echo htmlentities($testvar); ?



-- 
   O Ernest E. Vogelsinger
   (\)ICQ #13394035
^ http://www.vogelsinger.at/



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