PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
The code just reads $form_same_as_ship as blank/null and i can't really figure out why o_o any ideas?
i've tried to see if the value="true" didnt work, tried empty(), didnt work so i'm stumped.
Checkboxes aren't sent to the server if they aren't checked. So, the value can be anything you want it to be, and to check to see if a box was checked, you call isset on $_POST['name'].
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
no it is right, I want it do do soemthing if it is not set, I also tried using a hidden field with the same name and it still does not work...i am stumped
If $_POST['same_as_ship'] does not exist, please make sure that your form method is set to POST. If it is set to GET, you should check $_GET['same_as_ship'] instead of $_POST['same_as_ship'].
i tried that, so the error had to be the check box itself, after reviewing it nothing was apparently wrong, but when i checked the forms, there were some </form> stuff lying around still that caused the issue cheers.