| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Member Join Date: Jan 2005 Location: Texas USA
Posts: 71
![]() | help w/ $_POST in PHP Heres my problem, I have a bunch of variables sent from a form that takes on the look: planet1 planet2 planet3 planet4 planet5 ect. ect. ect. heres the IF statement that it is sent to: PHP Code: so, my question to you is, how do I have the variable $a inside of the _POST variable?
__________________ I wonder... |
| |
| | #3 (permalink) |
| NamePros Regular Join Date: Sep 2003
Posts: 890
![]() ![]() | To be honest the best way going about doing this would be to set the names to planet[] rather than planet1, ect. This will create an array of all the input and would make everything much easier to maintain.
__________________ Online Time Tracking :) |
| |