
Originally Posted by
sherlyk
Why? .....is not working
http://php.flashwebhost.com/sherly/blogloginsubmit.php
Code:
<?php
if (isset($_GET['submit'])) {
echo '<h1>Blog Login Success!!</h1>';
echo '<br>';
echo '<pre>';
print_r($_GET);
echo '</pre>';
}
else {
echo '
<html>
<body>
<h1>Visit Our Blog</h1>
<p>Marriage Counseling - Advice and Tip</p>
<form method="GET" action="blogloginsubmit.php">
Enter First Name : <input name="first name" type="text"><br>
Enter Last Name : <input name="last name" type="text"><br>
Enter Your Email : <input name="email" type="text"><br>
Enter Your Password : <input name="password" type="text"><br>
<button type="submit" name="login"> submit!</button>
</form>
</body>
</html>
'; }
We are checking is a something with name "submit" is passed to PHP script.
None of our input element have name "submit", to fix.
find
Code:
<button type="submit" name="login"> submit!</button>
Replace with
Code:
<button type="submit" name="submit">Some Nice Button Text Here</button>
Bookmarks