setting up a form on index page...? - Printable Version +- Twitist Forums (http://twitist.com) +-- Forum: Facebook forums (/forum-14.html) +--- Forum: Facebook Pages (/forum-13.html) +--- Thread: setting up a form on index page...? (/thread-14587.html) |
setting up a form on index page...? - Greg - 10-15-2012 09:08 PM 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 - Teoma - 10-15-2012 09:16 PM The problem will be with the register.php, are you using header() to redirect back to the index? - galt_57 - 10-15-2012 09:16 PM So what do you expect to happen? It sounds like this form is working fine. - Your Shadow - 10-15-2012 09:16 PM Might help... Setting Up the SMTP Service: http://www.code-crafters.com/abilitymailserver1/tutorial_smtp.html PHP: Sending Email Tutorial (Text/HTML/Attachments): http://www.webcheatsheet.com/php/send_email_text_html_attachment.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=CNKhqei1wJ4CFRQhnAod6laUqA http://www.thesitewizard.com/wizards/feedbackform.shtml http://www.form2email.net/ http://www.phpform.org/ Free Forms: http://www.jotform.com/form-templates/ Ron |