gigabyt3r Posted October 30, 2009 Share Posted October 30, 2009 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 Link to comment https://forums.phpfreaks.com/topic/179650-whats-wrong-with-my-query/ Share on other sites More sharing options...
PFMaBiSmAd Posted October 30, 2009 Share Posted October 30, 2009 Your if(...) statement has a semicolon ; on the end of it if(...); <--- here that is terminating the if(...) statement. Remove the ; Link to comment https://forums.phpfreaks.com/topic/179650-whats-wrong-with-my-query/#findComment-947940 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.