Can Somebody Explain Exactly How I Put The Php Form Handler In My Html Code?
or is it seperate and linked to the html code from another page. another thing is i don’t know php but only know i need this to get the email form working.
Related posts:
- How To Code A Simple Php Dynamic Dropdown Form Feild From Mysql? I been struggling with this all morning. I am tiring...
- Php - How To Store A Database Value From Html Feedback Form? Ok so if i make a feedback form which displays...
- Display ASP code on an HTML page Learn more about Display ASP code on an HTML page...
- I Have A Form In Php That I Need To Submit And Forward To A New Page At The Same Time? I have a php form that I need to submit...
- How To Direct Values From Php Textboxes In A Form To A Email Account? I have a web form at designed in php. Can...
Related posts brought to you by Yet Another Related Posts Plugin.


June 23rd, 2009 at 11:28 pm
The simple way is just need to make a form (inside a something.html) for posting the items´s value and send those item´s value to another page(ie: email.php) through form method “POST” or “GET” But u should use to POST method. Once you got those values into email.php then just write this following below code.
in calling file (something.html)
in receiving file (email.php)
variables: $_POST [ ' variablename ' ] )
Build $headers, $subject, $message, $to
$res = mail ($to, $subject, $message, $headers);
June 23rd, 2009 at 11:28 pm
Please email me if you need more explanation.
Typically the form action in the HTML links to the PHP that has the form processing information.
June 23rd, 2009 at 11:28 pm
Two ways: the simple one for amateurs and the complex one for professionals (much more efficient).
SIMPLE:
…
mailto:… find details in w3schools.com
COMPLEX:
in calling file (something.html)
in receiving file (email.php)
treat the data from the form (variables: $_POST [ ' variablename ' ] )
Build $headers, $subject, $message, $to
$res = mail ($to, $subject, $message, $headers);
for more details: http://www.php.net, search “mail” in functions.
It get more complex to add file uploads, attachments etc…
June 23rd, 2009 at 11:28 pm
usually apache is configured to process php in pages that end with “.php”. those pages can contain plain html too. if you want to run the php handler on a page that ends in “.html”, there are ways to do that too, but i don’t know if that’s what your after.
June 23rd, 2009 at 11:28 pm
There’s a basic Email form for yah, not sure where you were getting at
June 23rd, 2009 at 11:28 pm
It goes something like this:
< ?php (php code or filename of php page)>