Jump to content

Whats wrong with my query?


gigabyt3r

Recommended Posts

I have 11 tickboxs on my form and when I tick 1 or more of them and submit the form, it still returns every make listed below, why is this?

 

 

//display all models vehicles when submit button isnt pressed
if (!isset($_POST['Ford']) && (!$_POST['Mercedes']) && (!$_POST['Vauxhaull']) && (!$_POST['Citroen']) && (!$_POST['Peugeot']) && (!$_POST['Iveco']) && (!$_POST['FIAT']) && (!$_POST['Nissan']) && (!$_POST['Renault']) && (!$_POST['Volkswagen']) && (!$_POST['OtherMakes']));
{
$Make = "Ford', 'Mercedes', 'Vauxhaull', 'Citroen', 'Peugeot', 'Iveco', 'FIAT', 'Nissan', 'Renault', 'Volkswagen', 'DAF', 'Isuzu', 'MAN', 'Moffet', 'Scania', 'Toyota', 'LDV', 'Land Rover', 'Daihatsu' 'Mitsubishi";
}

 

Tried to work it out for hours and can't figure out why it won't work?

 

Thanks in advance  :shy:

Link to comment
https://forums.phpfreaks.com/topic/179650-whats-wrong-with-my-query/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.