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.
My HTML form is:
and my PHP is:
Can anyone help me with what's wrong?
Thank you.
$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.