faqts : Computers : Programming : Languages : PHP : Common Problems : Forms and User Input

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

19 of 36 people (53%) answered Yes
Recently 4 of 10 people (40%) answered Yes

Entry

While on a php page how can I tell if a person has clicked on a checkbox, and how can I pass that value to another page...without using submit?

Oct 24th, 2000 16:33
Paul Coldrey, david seemiller, Ben Udall,


The problem you face is that PHP is a server-side language and the only 
way to get information back to the server is by submiting the form. 
Hence the simple answer is 'no', you can't do it using PHP because no 
information is returned to the server when users click on form inputs. 
If you want to pass around information between pages on the client-side 
the you should be looking at Javascript (or, dare I say it, VBScript).