pwes24 Posted December 7, 2007 Share Posted December 7, 2007 Hello everyone and thank you for reading my post. I'm trying to access checkbox selections to insert into a single table box. How do i do this with the $_GET superglobal variable? Thank you. Quote Link to comment Share on other sites More sharing options...
revraz Posted December 7, 2007 Share Posted December 7, 2007 Do you already have a Form setup? If so, post it. Quote Link to comment Share on other sites More sharing options...
pwes24 Posted December 7, 2007 Author Share Posted December 7, 2007 Well the script is pretty long but heres a picture: a user needs to state what days he's available to work. Let's say he is available Friday and Monday. The table handlin user info has one spot to store these days. so first i capture user selection as $days=$_get['days'] and insert into `table` as $days. when i check user input in the table, it shows "array". Can i have something like Friday, Monday? Quote Link to comment Share on other sites More sharing options...
revraz Posted December 7, 2007 Share Posted December 7, 2007 And what is actually in $days, a number or a day like Monday? Quote Link to comment Share on other sites More sharing options...
pwes24 Posted December 7, 2007 Author Share Posted December 7, 2007 $days is a variable that holds the values of a checkbox accessed through $_GET['days']; 'days' is an array of values that have been checked by user in a checkbox set. Quote Link to comment Share on other sites More sharing options...
revraz Posted December 7, 2007 Share Posted December 7, 2007 According to your code, $days is just a single variable and would only hold 1 thing. echo $days and see what it returns. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.