Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

PHP form

$
0
0
I have a form in HTML that I am suppose to post the results of the fields in a PHP with the key and the value but when I run my code it shows up this on the page.
$value) echo "$key: $value
"; ?> 


My HTML form is:
	<form name = "nameLogin" action="formResult.php" method="post" >
		<label for="username">Login Name:</label>
		<input type="text" name="user" id="user" onblur="charlen(this.id)" maxlength=10 onkeyup="isAlphaNumeric()" ><br>
		<label for="pwd">Password:</label>
		<input type="password" name="pwd" id="indent" onblur='password()'><br><br>
		<input type="submit" value="Submit" >
	</form>


and my PHP is:
<html>
	<head>
	 <title> Results of Login form</title>
	</head>
	<body>
		<?php
			foreach($_REQUEST as $key => $value)
				echo "$key: $value<br>";
		?>
	</body>
</html>


Can anyone help me with what's wrong?
Thank you.

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>