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.
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
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
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
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.
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
Forum Rules
Bookmarks