Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

press 'Enter' and click button create different results

Status
Not open for further replies.

sfc

Programmer
Apr 18, 2002
4
US
I have a question regarding the difference between clicking a button and pressing 'Enter' key. My page contains a button of name='A' within a form tag. Browser focuses on the button when the page is initially loaded. When I click the button, 'A' with it value will be put into $_REQUEST array. However, if I press 'Enter' key, which I believe it is equailvalent to clicking the button, 'A' and its value does not get into $_REQUEST.

Does anybody can give me some idea why they act differently?

Thanks for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top