Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Anthony Lockett
- On Thursday 19th May 2011, @Nucleiosis said:
- @phpacademy Here is the code when this php is included the form does not show on the page.
- <?php
- echo "
- REGISTER!
- "
- $submit = $_POST['submit'];
- //form data
- $firstname = $_POST['firstname'];
- $lastname = $_POST['lastname'];
- $email = $_POST['email'];
- $username = $_POST['username'];
- $password = $_POST['password'];
- $repeatpassword = $_POST['repeatpassword'];
- if ($submit)
- {
- echo "$firstname/$lastname/$email/$username/$password/$repeatpassword"
- }
- ?>
- <html>
- <form action='register.php'>
- <input type='text' name='firstname' placeholder='First Name'>
- <input type='text' name='lastname' placeholder='Last Name'>
- <input type='email' name='email' placeholder='Email'>
- <input type='text' name='username' placeholder='Username'><br>
- <input type='password' name='password' placeholder='Password'>
- <input type='password' name='repeatpassword' placeholder='Repeat Password'>
- <input type='submit' name='submit' value='Register!'>
- </form>
- </html>
- When it is like this the form shows up
- <?php
- echo "
- REGISTER!
- "
- ?>
- <html>
- <form action='register.php'>
- <input type='text' name='firstname' placeholder='First Name'>
- <input type='text' name='lastname' placeholder='Last Name'>
- <input type='email' name='email' placeholder='Email'>
- <input type='text' name='username' placeholder='Username'><br>
- <input type='password' name='password' placeholder='Password'>
- <input type='password' name='repeatpassword' placeholder='Repeat Password'>
- <input type='submit' name='submit' value='Register!'>
- </form>
- </html>
Add Comment
Please, Sign In to add comment