setting up a form on index page...?
|
10-15-2012, 09:08 PM
Post: #1
|
|||
|
|||
setting up a form on index page...?
i am working on a website where the user can register on the homapage, like facebook and twitter. Well i created the form on the INDEX.PHP and the actual php coding for the form on REGISTER.PHP. But i cannot seem to get the form to work, when ever i click submit it just takes me to the register.php page. here are some codes:
<form id="form4" form action='register.php' method='post'> <h3>Register</h3> <fieldset><legend>Contact form</legend> <p class="first"> <label for="name">Name</label> <input type="text" name="fullname" id="name" size="30" /> </p> <p> <label for="email">Email</label> <input type="text" name="email" id="email" size="30" /> </p> <p> <label for="password">Password</label> <input type="password" name="password" id="password" size="30" /> </p> <p> <label for="message">Retype Password</label> <input type="password" name="retypepassword" id="password" size="30" /> </p> <p class="submit"><button type="submit">Submit</button></p> </fieldset> </form> and of course the register.php has all of that appropriate coding, but i guess i am missing something. What php codes do i need and where in order to get this form to work properly? alright i shouldve added the register.php, here it is 65||strlen($fullname) 65){ echo "Max limit of characters for name/email is 64"; } else{ //password check if (strlen($pass) 50||strlen($pass) **once i hit submit on the form it just takes me to a black register.php page Ads |
|||
10-15-2012, 09:16 PM
Post: #2
|
|||
|
|||
The problem will be with the register.php, are you using header() to redirect back to the index?
Ads |
|||
10-15-2012, 09:16 PM
Post: #3
|
|||
|
|||
So what do you expect to happen? It sounds like this form is working fine.
|
|||
10-15-2012, 09:16 PM
Post: #4
|
|||
|
|||
Might help...
Setting Up the SMTP Service: http://www.code-crafters.com/abilitymail..._smtp.html PHP: Sending Email Tutorial (Text/HTML/Attachments): http://www.webcheatsheet.com/php/send_em...chment.php Use any of the below sites to make the workable form you need (Just follow the instructions for making it and uploading file(s)): Contact Form Generator: http://www.tele-pro.co.uk/scripts/contact_form/ WYSIWYG Form Maker (Easiest to Use): http://www.jotform.com/?gclid=CNKhqei1wJ...nAod6laUqA http://www.thesitewizard.com/wizards/feedbackform.shtml http://www.form2email.net/ http://www.phpform.org/ Free Forms: http://www.jotform.com/form-templates/ Ron |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)