Category: PHP

Upload Files From a Form

Hello guys,ξ I decided to do a post on how to upload files from a simple HTML form into your server. First, you will need to set up this form with the proper headings, please see code below. <form enctype=”multipart/form-data” action=”uploads.php” method=”POST”> Choose a file to upload: <input name=”uploadedfile” type=”file” /><br /> <input type=”submit” value=”Upload …

Send Form Contents to E-Mail

I took the time to do this post because I see a lot of students looking everywhere for a PHP E-Mail script, so here it is: //Created byξGilbertoξCortez |ξhttp://www.gilbertocortez.com //Variables $form = ???Contact Us???;//Form Name //Inputs From Form $name = $_POST[‘name’]; $email = $_POST[’email’]; $phone = $_POST[‘phone’]; $city = $_POST[‘city’]; $comments = $_POST[‘comments’]; //E-Mail Headers …