xkeywee Posted August 13, 2007 Share Posted August 13, 2007 I have a form that posts and 1 field is for a suburb, 1 of the suburbs in our area is "curl curl". When ever this is entered we get an error message "You don't have permission to access". Any ideas to fix this would be appreciated Quote Link to comment Share on other sites More sharing options...
BillyBoB Posted August 13, 2007 Share Posted August 13, 2007 how bout giving us some code to debug??? we arnt magical... Quote Link to comment Share on other sites More sharing options...
xkeywee Posted August 13, 2007 Author Share Posted August 13, 2007 Sorry, It is part of a large script with lots of includes so I have written a simple script that does ther same thing. <?php echo ' <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html lang="en"> <head> <title>Test Curl</title> <meta http-equiv="Content-Language" content="en-AU" /> <meta http-equiv="Country" name="Australia" /> <link rel=StyleSheet href="includes/style.css" type="text/css"> </head> <body>'; if($_POST['action'] == "Save") { echo 'You entered a suburb of '.$_POST['suburb']; exit(); } else { echo ' <form name="main_form" action="'.$_SERVER['PHP_SELF'].'" method="post" enctype="multipart/form-data"> <input type="hidden" name="action" value=""> Suburb: <input class="text_entry" type="text" name="suburb" size="200" maxlength="200" style="width:250px;" id="suburb" value=""> <a href="#" onClick="document.main_form.action.value=\'Save\'; document.main_form.submit();">Save</a> </form>'; } echo ' </body> </html>'; This can be tested at http://www.cybernamixqld.com.au/curl-test.php. If you enter "chicago" as a suburb it is alright but if you enter "curl curl" it is not. Thanks for your help. Quote Link to comment Share on other sites More sharing options...
TecBrat Posted December 17, 2007 Share Posted December 17, 2007 I have a form that posts and 1 field is for a suburb, 1 of the suburbs in our area is "curl curl". When ever this is entered we get an error message "You don't have permission to access". Any ideas to fix this would be appreciated I would try testing the data for an instance of "curl curl" and replaceing it with "curlcurl" or "curl_curl" or similar. If that's not an option, I'd suggest digging into the manuals at haxx. 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.