as far as I know, html only posts data wich is selected, so if nothing is selected it will post absolutely nothing.
to prevent you're script from (possibly) failing you can check if a variable is posted or not with:
- Code: Select all
if (isset($_POST['variable']))
{
blablabla;
}
You can also use javascript or something to check if something is actually selected or not before the form is posted, this is not foulproof though.
How can I get the contents of the form object?
if nothing was selected: not via $_POST
if something was selected: the selected items via $_POSt
for all values you will either have to select everything :twisted:
you can also just look in the original form and get you're data from there.
anyway, I can't see you're
actual problem :cry: you're not getting something from you're form, but you know the contents of you're form, so.... I don't really get it :roll:
Greetz Daan