andy282uk Posted July 5, 2006 Share Posted July 5, 2006 heyim trying to construct php code to work with my online form. i get this errorParse error: parse error, unexpected T_BOOLEAN_AND, expecting ',' or ')' on line 2here is the code.[code]if (isset($_POST["Submit"] AND $_POST["Submit"]) == "Send")[/code]it should be a simple fix.many thanks Quote Link to comment https://forums.phpfreaks.com/topic/13766-simple-php-question/ Share on other sites More sharing options...
kenrbnsn Posted July 5, 2006 Share Posted July 5, 2006 You have the parenthesis in the wrong place. Try:[code]<?php if (isset($_POST["Submit"]) && $_POST["Submit"] == "Send") ?>[/code]Ken Quote Link to comment https://forums.phpfreaks.com/topic/13766-simple-php-question/#findComment-53472 Share on other sites More sharing options...
wildteen88 Posted July 5, 2006 Share Posted July 5, 2006 Change it to this:if (isset($_POST["Submit"]) && $_POST["Submit"] == "Send")Basically you had the closing ) in the wrong placeUmm, Ken beat me :) Quote Link to comment https://forums.phpfreaks.com/topic/13766-simple-php-question/#findComment-53473 Share on other sites More sharing options...
andy282uk Posted July 5, 2006 Author Share Posted July 5, 2006 Thanks guys!Much appreciated. Cant believe I made that mistake! :-[ Quote Link to comment https://forums.phpfreaks.com/topic/13766-simple-php-question/#findComment-53477 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.