Orionsbelter Posted January 31, 2009 Share Posted January 31, 2009 ok, i'm getting sme HTTP POST data send to a link on my website, in this HTTP POST DATA they will be two fields user and pass if these are wrong i need to refuse the request with 'ERROR auth_failed credentials incorrect' how would i do this would it be like: if($user=="example"){error(ERROR auth_failed credentials incorrect)} please help Quote Link to comment Share on other sites More sharing options...
DeanWhitehouse Posted January 31, 2009 Share Posted January 31, 2009 Yes try it, but don't forget to use quotation marks in the echo. Also i hope you are using $_POST['']; to get the post data and not $_SERVER['HTTP_POST_VARS'] (or whatever it is) Quote Link to comment 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.