Closed Thread Icon

Topic awaiting preservation: PHP check form (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=25195" title="Pages that link to Topic awaiting preservation: PHP check form (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: PHP check form <span class="small">(Page 1 of 1)</span>\

 
redroy
Bipolar (III) Inmate

From: 1393
Insane since: Dec 2003

posted posted 03-06-2005 15:42

Does PHP have an equivalent to the following Javascript?:

code:
if(document.form1.check.checked==true)


Basically, I'm looking to create a form where if a certain checkbox is checked, then below new checkboxes will appear.

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 03-06-2005 15:52

If a checkbox is checked, it should appear in the $_GET or $_POST array, so : yes! use a checkbox as a condition in PHP. In your case it would look like :

code:
if( isset( $_GET['check'] ) )

if the form is sent in GET or

code:
if( isset( $_POST['check'] ) )

if the form is sent in POST.

Hope that helps



(Edited by poi on 03-06-2005 15:52)

« BackwardsOnwards »

Show Forum Drop Down Menu