www.webdeveloper.com
Results 1 to 8 of 8

Thread: HTML forms

  1. #1
    Join Date
    Aug 2012
    Location
    Programming
    Posts
    21

    Question HTML forms

    Hiya, I would like to make an HTML form so when you click on submit button the form changes but the url will stay the same. E.G:

    URL:
    http://chatzones.weebly.com/forgot-password.html
    Code:
    <form><label>Email</label><br /><input type="text" name="Email"><input type="submit" value="Retrieve Password" name="SubmtBtn"></form>
    What code do I add?
    Cap123

  2. #2
    Join Date
    Mar 2012
    Posts
    931
    <form action="*" method=GET>

    Will call itself, so the URL will stay the same. You can then assign the input to variable(s), and configure the form accordingly. E.g.

    <?php
    $Email = $_GET[Email];
    ...
    ?>

    You should add some error checking etc. but that is the basics.

  3. #3
    Join Date
    Aug 2012
    Location
    Programming
    Posts
    21
    Does it work without PHP?

  4. #4
    Join Date
    Mar 2012
    Posts
    931
    HTML has no way of processing the form input. You need to use PHP, JavaScript or another language.

  5. #5
    Join Date
    Aug 2012
    Location
    Programming
    Posts
    21

    Question PHP website builder

    Do you know a free online website builder which allows PHP HTML & JavaScript?

  6. #6
    Join Date
    Mar 2012
    Posts
    931
    No, sorry. You also need to check whether your site host supports PHP (if you choose that option). Pretty well all paid ones do, but some free hosts do not.

  7. #7
    Join Date
    Aug 2012
    Location
    Programming
    Posts
    21
    Okay, I have been trying all sorts of website builders but they don't have PHP coding.

  8. #8
    Join Date
    May 2005
    Location
    Gold Coast (MS)
    Posts
    2,199
    PHP coding is not a property of a web editor as far as all the editors I have used. You must do the coding for yourself unless you are pasting in a pre-made script for use. Visual Editors are harder to use in this aspect as there are extra steps you must use to get any code added to the page.

    Might help with form making:

    Setting Up the SMTP Service: http://www.code-crafters.com/ability...rial_smtp.html

    PHP: Sending Email Tutorial (Text/HTML/Attachments): http://www.webcheatsheet.com/php/sen...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=CNKhqe...FRQhnAod6laUqA
    http://www.thesitewizard.com/wizards/feedbackform.shtml
    http://www.form2email.net/
    http://www.phpform.org/

    Free Forms: http://www.jotform.com/form-templates/

    http://www.thepcmanwebsite.com/form_mail.shtml
    http://emailmeform.com/
    http://www.freecontactform.com/
    http://www.reconn.us/content/view/12/34/ (Download - Contact Us Script)
    http://formsmarts.com/

    http://apptools.com/phptools/forms/forms1.php
    Form Service: http://www.mycontactform.com/
    Online Free Tool, PHP Contact Form Code Generator: http://www.htmlbasix.com/contactform.shtml
    PHP Mailer Script Step by Step: http://www.htmlgoodies.com/beyond/ph...le.php/3855686
    PHP Sending E-mails: http://www.w3schools.com/PHP/php_mail.asp

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles