Jump to content

[SOLVED] simple submit wont submit


dizzy1

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.