www.webdeveloper.com
Results 1 to 7 of 7

Thread: form with validation and submit button

  1. #1
    Join Date
    May 2012
    Posts
    1

    form with validation and submit button

    Good day,

    I do have a quest, I am new to php, and I need to make a webpage that has form with validation and submit the details to specific email.

    Do I really need to create php file?

    I have 0 knowledge in php, is there anyway that you guys give me a link of tutorial so i can get basic information about php.

    Do I still need to save my index as html file or do i need to save it as php file now?

    Sorry Im a noob.

  2. #2
    Join Date
    Feb 2012
    Location
    Bokaro Steel City (Jharkhand), India!
    Posts
    194
    Check this: http://php.about.com/od/advancedphp/ss/mail.htm


    PHP is quite easy for normal use! Don't fear!
    "It will never rain roses: when we want to have more roses, we must plant more roses." - George Eliot

  3. #3
    Join Date
    Feb 2012
    Location
    Bokaro Steel City (Jharkhand), India!
    Posts
    194
    You can validate your form using JavaScript...

    But you must also validate on the server side!

    ------------------------------------------------------------

    Also, it is not necessary that you use PHP only! There are other options also like CGI script etc.! But writing PHP script for the desired work is the easiest that I find!

    ------------------------------------------------------------
    "It will never rain roses: when we want to have more roses, we must plant more roses." - George Eliot

  4. #4
    Join Date
    Feb 2012
    Location
    Bokaro Steel City (Jharkhand), India!
    Posts
    194
    You can also just use HTML without any PHP scripts etc. by just using 'mailto:' but it generally does not work because of many reasons!

    Find out: http://email.about.com/cs/usingemail/a/email_forms.htm

  5. #5
    Join Date
    Mar 2012
    Location
    bangalore,india
    Posts
    27
    you can't send an email through localhost ..you must have SMTP to do so..
    also you can save your file with any extension you want it doesn't matter if it is html or php as far as your needs mentioned above.

  6. #6
    Join Date
    Mar 2012
    Location
    bangalore,india
    Posts
    27
    if you want to learn php see this www.w3schools.com and www.php.net/basicmanual.com

  7. #7
    Join Date
    Jan 2010
    Posts
    6
    and you can leave your files as ".html" you don't have to change them to ".php" if you do use php.

    also make sure your web hosting provider supports PHP

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