One point nobody seems to have raised about why its important to quote
attribute values ...
?
$Value=foo bar;
echo INPUT type=text value=$Value;
?
will produce the following code in the browser
INPUT type=text value=foo bar
and renders in the browser (testing in ie6) as a text box containing
On Monday 11 November 2002 17:59, Richard Allsebrook wrote:
One point nobody seems to have raised about why its important to quote
attribute values ...
?
$Value=foo bar;
echo INPUT type=text value=$Value;
?
will produce the following code in the browser
INPUT type=text value=foo bar
It is a client side browser issue. Which browser are you testing within???
-Original Message-
From: rija [EMAIL PROTECTED]
To: php [EMAIL PROTECTED]
Date: Sunday, November 10, 2002 9:49 PM
Subject: [PHP] Submit hitting enter problem
What am I missing?
My form does not submit when I
What am I missing?
My form does not submit when I hit enter in the text box.
I do something approximately like this :
form action=index.php?s=add method=post
input type=text name=bongabe value=something
...
input type=submit value=submit name=submit
//
Thanks in advance.
on 11/11/02 12:44 PM, rija ([EMAIL PROTECTED]) wrote:
input type=text name=bongabe value=something
I think you need to use a textarea if you wish for the returns to be
submitted.
Cheers
Justin French
Creative Director
http://Indent.com.au
Web Developent
Graphic Design
: Monday, November 11, 2002 3:45 PM
Subject: Re: [PHP] Submit hitting enter problem
on 11/11/02 12:44 PM, rija ([EMAIL PROTECTED]) wrote:
input type=text name=bongabe value=something
I think you need to use a textarea if you wish for the returns to be
submitted.
Cheers
Justin French
PROTECTED]
Sent: Monday, November 11, 2002 3:45 PM
Subject: Re: [PHP] Submit hitting enter problem
on 11/11/02 12:44 PM, rija ([EMAIL PROTECTED]) wrote:
input type=text name=bongabe value=something
I think you need to use a textarea if you wish for the returns to be
submitted
on 11/11/02 2:16 PM, rija ([EMAIL PROTECTED]) wrote:
Thanks for your quick answer,
But it doesn't change anything.
textarea change my text box into big text area-
So I always have to click on submit button to submit the form.
Actually, I miss-read your question... do you WANT the form to
Thanks for your quick answer,
But it doesn't change anything.
textarea change my text box into big text area-
So I always have to click on submit button to submit the form.
So? This doesn't have anything to do with PHP, it's dependant on the
browser you are using. IE will do this for you
On Monday 11 November 2002 10:44, rija wrote:
What am I missing?
My form does not submit when I hit enter in the text box.
I do something approximately like this :
form action=index.php?s=add method=post
input type=text name=bongabe value=something
...
input type=submit value=submit
into
popularity. Good luck.
-Original Message-
From: rija [mailto:rija;vatu.com]
Sent: Sunday, November 10, 2002 8:45 PM
To: php
Subject: [PHP] Submit hitting enter problem
What am I missing?
My form does not submit when I hit enter in the text box.
I do something approximately like
to put quote because sometimes users enter space.
- Original Message -
From: Jason Wong [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, November 11, 2002 3:33 PM
Subject: Re: [PHP] Submit hitting enter problem
What happens when ENTER is pressed depends on what browser you're using
well, you are right they may work, but according to the sepcification qoutes
should be added, you should follow it, because you don't know the hidden
browsers out there which you didn't test, and IE, Opera, NS can't guarantee
that they will support this behaviour in future releases
quote because sometimes users enter space.
- Original Message -
From: Jason Wong [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, November 11, 2002 3:33 PM
Subject: Re: [PHP] Submit hitting enter problem
What happens when ENTER is pressed depends on what browser you're
using.
Different
-
From: Justin French [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; php [EMAIL PROTECTED]
Sent: Monday, November 11, 2002 4:28 PM
Subject: Re: [PHP] Submit hitting enter problem
on 11/11/02 2:16 PM, rija ([EMAIL PROTECTED]) wrote:
Actually, I miss-read your question... do you WANT the form
On Monday 11 November 2002 13:36, rija wrote:
Sure !
But just simple question?
Is it necessary to put quotes around these attributes values?
Let's put it this way, using quotes will not break any browser. Not using
quotes /may/ make your page not work correctly on browsers which implement
On Monday 11 November 2002 14:04, rija wrote:
Really big thank to everybody,
But, now, I know what happening, because I check form submit using
isset($_POST['submit']), so if user don't press submit button,
$_POST['submit'] stay null even the rest is already sent. Then my script
send me back
David Rice wrote...
It's not mandatory to put quotes around attributes, but it would be wise to
use this style=recommended method of representing attributes, if for no
reason=other than to get used to a habit=good.
It is mandatory for XHTML, I believe.
-- Charles Wiltgen
--
PHP General
Hello,
Charles Wiltgen [EMAIL PROTECTED] wrote:
David Rice wrote...
It's not mandatory to put quotes around attributes, but it would be
wise to
use this style=recommended method of representing attributes, if for
no
reason=other than to get used to a habit=good.
It is mandatory for
19 matches
Mail list logo