Jewbilee Posted December 4, 2006 Share Posted December 4, 2006 Every time i try to submit the following code.. i get a 403 error.. I turned register_globals on but I can't figure out whats wrong..[code]<?phpif (!isset($_POST['submit'])) {// form not submitted?><form action="<?=$_SERVER['PHP_SELF']?>" method="post"><input type="submit" name="submit" value="Test"></form><?php}else { include('testdb.php'); } ?>[/code]i get this error:ForbiddenYou don't have permission to access /< on this server. Quote Link to comment https://forums.phpfreaks.com/topic/29351-having-trouble-with-wamp/ Share on other sites More sharing options...
redbullmarky Posted December 4, 2006 Share Posted December 4, 2006 you may have 'short tags' support turned off. meaning that <? and <?= wont be supported. change it to <?php echo (in your 'action' part of your form tag) and give it a blast. definitely definitely definitely turn register_globals back off ;) Quote Link to comment https://forums.phpfreaks.com/topic/29351-having-trouble-with-wamp/#findComment-134596 Share on other sites More sharing options...
Jewbilee Posted December 4, 2006 Author Share Posted December 4, 2006 dont i need register globals on in order to user $_GET and $_POST and stuff? Quote Link to comment https://forums.phpfreaks.com/topic/29351-having-trouble-with-wamp/#findComment-134614 Share on other sites More sharing options...
Jewbilee Posted December 4, 2006 Author Share Posted December 4, 2006 and what you said did help, thanks very much.. just waiting for register_globals answer now Quote Link to comment https://forums.phpfreaks.com/topic/29351-having-trouble-with-wamp/#findComment-134615 Share on other sites More sharing options...
keeB Posted December 4, 2006 Share Posted December 4, 2006 No Quote Link to comment https://forums.phpfreaks.com/topic/29351-having-trouble-with-wamp/#findComment-134625 Share on other sites More sharing options...
redbullmarky Posted December 4, 2006 Share Posted December 4, 2006 no. there is absolutely no reason ever ever ever to turn register_globals on anymore. $_GET/$_POST will work regardless.might be worth having a quick readup: [url=http://uk2.php.net/register_globals]register_globals[/url] Quote Link to comment https://forums.phpfreaks.com/topic/29351-having-trouble-with-wamp/#findComment-134730 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.