JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
Oct 17, 2012 00:37
1
Q: Posting both checked and unchecked checkboxes

jessicaI'm trying to make a series of checkboxes in a web form that will post either "true" or "false" to the next php page, depending on whether they are checked. I decided that for each checkbox (value="true"), I would have a hidden checkbox (value="false") that would always be the opposite (when chec...

 

PHP

Support group for those afflicted with PHP. Don't ask to ask, ...
Oct 17, 2012 00:36
1
Q: Posting both checked and unchecked checkboxes

jessicaI'm trying to make a series of checkboxes in a web form that will post either "true" or "false" to the next php page, depending on whether they are checked. I decided that for each checkbox (value="true"), I would have a hidden checkbox (value="false") that would always be the opposite (when chec...

Jul 8, 2012 09:02
oh well, time to call it a night i think. thanks for your help guys
Jul 8, 2012 08:55
it's almost as if php isn't being recognized, but my phpinfo page works fine.
Jul 8, 2012 08:55
looking at the page source of the web page isn't revealing anything... i also added "error_reporting(~0); ini_set('display_errors', '1');" but that hasn't changed anything either.
Jul 8, 2012 08:49
@hakre i don't want to insert html markup - i want to insert the string value stored in $_POST['select'] into the textarea.
Jul 8, 2012 08:44
@hakre haha yes, i know. to me $_POST['select'] doesn't need any more description though. it's the select statement that was posted to the web page. :)
Jul 8, 2012 08:36
@Random just a matter or preference i guess. i'd rather not have to try and remember what was stored in the variable.
Jul 8, 2012 08:33
@Leigh ok
Jul 8, 2012 08:33
@Leigh in php tags?
Jul 8, 2012 08:33
@Leigh and what do i do with that?
Jul 8, 2012 08:31
@Leigh hah, thanks
Jul 8, 2012 08:29
@hakre ah i see.
Jul 8, 2012 08:29
do you guys see anything syntactically wrong with lines 96-113?
Jul 8, 2012 08:27
@Leigh yes i do.
Jul 8, 2012 08:27
@Leigh well i guess that's my problem then - i don't know about var_dump!
Jul 8, 2012 08:23
@hakre unfortunately i'm not able to grasp this language as well as the others so debugging is a little harder for me. :/
Jul 8, 2012 08:22
@hakre yes, i do that when developing in java and python - i tried adding 'echo "hello world";' to line 107 to see if it would do even that but it didn't.
Jul 8, 2012 08:19
@hakre both problems in this code seem like they may be related though?
Jul 8, 2012 08:19
@tereško yeah i know. i just picked up web design again after about 9 years. :P
Jul 8, 2012 08:17
@hakre lol, sorry. i'll be more specific. the code block at line 99 is showing up in the textarea, as though it's not even recognized as php code. the code block at line 106 isn't doing anything at all.
Jul 8, 2012 08:13
@hakre what do you mean?
Jul 8, 2012 08:07
Could someone pretty please proofread my HTML/PHP code? Neither of the 2 PHP code blocks are doing what I expect them to do! pastebin.com/09rz4uRz