From iaquinto at ozemail.com.au Sun Feb 10 17:47:07 2013 From: iaquinto at ozemail.com.au (Margaret Iaquinto) Date: Sun, 10 Feb 2013 17:47:07 +1100 Subject: [php] PHP and checkboxes and radio buttons Message-ID: <5117426B.5020702@ozemail.com.au> I plan to use these files to show structured input. -------------- next part -------------- Form

using checkboxes

-----
"); echo ("
"); ****************/ include('library.inc'); page_header('opinions'); if(isset($_POST['chkAccess']) && $_POST['chkAccess'] == 'Yes') { echo "You need wheelchair access."; echo ("
"); } if(isset($_POST['chkMail']) && $_POST['chkMail'] == 'Yes') { echo "Thanks for joining our mailing list."; } else { echo "We will not add you to our mailing list"; } page_footer('VK3CFI'); ?> ---- \n"; echo " \n"; echo " $title \n"; echo " "; echo " "; echo " \n"; } function page_footer ($yourname) { echo ""; echo " \n \n"; } ?> -------------- next part -------------- Using radio buttons

Radio Buttons

--- "; } if(isset($_POST['radStatus'])) { $status = $_POST['radStatus']; echo "Your status is $status
"; echo "Notice how this output of $status does not make much sense at this point but, with further programming, it does
"; if($status == '1') { echo "You are a native born Australian."; } else { echo "You were born overseas."; } } page_footer('VK3CFI'); --- \n"; echo " \n"; echo " $title \n"; echo " "; echo " "; echo " \n"; } function page_footer ($yourname) { echo ""; echo " \n \n"; } ?> ?> From iaquinto at ozemail.com.au Sun Feb 10 17:48:45 2013 From: iaquinto at ozemail.com.au (Margaret Iaquinto) Date: Sun, 10 Feb 2013 17:48:45 +1100 Subject: [php] PHP Dapper Dogs - using many types of input structures Message-ID: <511742CD.1020105@ozemail.com.au> The student file has missing code parts. The TN file is complete. Please let me know of any errors. It has been a long day. Maggie (ICT at St Leonards) -------------- next part -------------- A non-text attachment was scrubbed... Name: PHP using checkboxes and radio buttons 2013 TN.docx Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document Size: 59167 bytes Desc: not available Url : http://www.edulists.com.au/pipermail/php/attachments/20130210/6c69bbd5/PHPusingcheckboxesandradiobuttons2013TN-0001.docx -------------- next part -------------- A non-text attachment was scrubbed... Name: PHP using checkboxes and radio buttons 2013.docx Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document Size: 53497 bytes Desc: not available Url : http://www.edulists.com.au/pipermail/php/attachments/20130210/6c69bbd5/PHPusingcheckboxesandradiobuttons2013-0001.docx