Jump to content

php form to email


eMonk

Recommended Posts

i want to create a php form that will send my to email address once submitted. the form will include:

 

- text fields

- text area boxes

- check boxes

- radio buttons

- list/menu drop downs

- up to 10 image attachments with browse buttons & max filesize of 500kb or so

 

any tutorials on how to do this? my book "php and mysql web development - 4th edition" doesn't cover php form processing to emails. thanks in advance!

Link to comment
https://forums.phpfreaks.com/topic/129830-php-form-to-email/
Share on other sites

You could do a foreach, print_r($_REQUEST) and a small script to handle the $_FILES, or just download a free Form to Email script

make sure your HTML page has this

<form enctype="multipart/form-data" ...>

    <input type="hidden" name="MAX_FILE_SIZE" value="500000" /><!--500kb in bytes not always works

I'm not an expert at $_FILES, but you can look at http://us.php.net/manual/en/features.file-upload.php for more info

Link to comment
https://forums.phpfreaks.com/topic/129830-php-form-to-email/#findComment-673123
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.