Re: forms and php

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Some older browsers didn't send along the button name/value when you
hit enter, for a one-button form...

But I've never heard of one that failed to send anything at all...

It's almost for sure a browser issue though -- PHP doesn't really *do*
anything with the data it gets.

It just stuffs it into $_POST / $_GET

Ah.

Did you remember to use method="post" in your FORM tag?... :-)

On Thu, January 24, 2008 2:34 am, Mark Pashia wrote:
> I am fairly new to the php/mySQL combo and just noticed an unusual
> behavior
> and don't know where to find the answer to fix this. It is probably
> common
> knowledge, but not to a newbie.
>
>
>
> If I fill in the fields of a form and hit the "enter" key to submit
> the
> form, no variables seem to be passed along. If I use the submit
> button,
> everything works perfectly. It seems that other forms on the web work
> with
> the enter key just fine, so I am probably doing something to cause
> this yet
> I don't know what.
>
>
>
> I am hosted at hostgator.com and it has php version 4.4.4 and mySQL
> version
> 4.1.22-standard.
>
>
>
> Thanks, Mark Pashia
>
>


-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/from/lynch
Yeah, I get a buck. So?

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux