dizzy1 Posted October 22, 2009 Share Posted October 22, 2009 Ive done a loads of forms in PHP, ive just loaded the latest XAMMP and started work on this and for some reason it doesn't seem to submit: <?php $UrlName = $_POST["TxtUrlName"]; echo "URL NAME = "; echo $UrlName; echo "<br> <br> "; ?> <? if ($UrlName == ""){ ?> <html> <body> Enter A URL in the text Box<br /> <p> <form action="index.php" method="post"> URL: <input type="text" name="TxtUrlName" value="http://www.wlv.ac.uk/" /><br /><br /> <input type="submit" value="Submit" /> </form> </p> </body> </html> <? }else{ echo $UrlName ; echo"The links you have entered :"; ?> <br> <br> <? } ?> Link to comment https://forums.phpfreaks.com/topic/178670-solved-simple-submit-wont-submit/ Share on other sites More sharing options...
cags Posted October 22, 2009 Share Posted October 22, 2009 Do you see some of the php code in the HTML source? Your code relies on short_open_tag = On in your php.ini. You can check this setting using phpinfo. Link to comment https://forums.phpfreaks.com/topic/178670-solved-simple-submit-wont-submit/#findComment-942468 Share on other sites More sharing options...
dizzy1 Posted October 23, 2009 Author Share Posted October 23, 2009 Its solved i think it had something to do with moving an old htdocs folder to a newer version of XAMMP. Thanks for the quick response anyway. Link to comment https://forums.phpfreaks.com/topic/178670-solved-simple-submit-wont-submit/#findComment-942526 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.