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 Link to comment https://forums.phpfreaks.com/topic/143275-help-with-notification-link/ 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) Link to comment https://forums.phpfreaks.com/topic/143275-help-with-notification-link/#findComment-751391 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.