Hello...
Im new to php...very new.
I need to create a form that has a
text area - (email address)
text area - (gender)
radio buttons - (age group)
and file upload
and submitt button
and all this information needs to be sent an email address
IM STUCK....can someone help me complete this form.
here's my code thus far.
basically I need to make the back end php page and Im not sure how to do that appropriately...any help would be greatly appreciatedCode:<form action="/photofinishscript.php" method="post" enctype="multipart/form-data" name="form1" class="style7" id="form1"> <label>EMAIL <input type="text" name="EMAIL" id="EMAIL" /> </label> <p> <label><span class="style6">GENDER</span> <input type="text" name="GENDER" id="GENDER" /> </label> </p> <p> <label> <span class="style6"> <input type="radio" name="AGE GROUP" value="low" id="AGE GROUP_0" <?PHP print $low_status; ?>> <strong>25 AND UNDER</strong></span></label> <span class="style6"><strong><br /> <label> <input type="radio" name="AGE GROUP" value="mid1" id="AGE GROUP_1" <?PHP print $mid1_status; ?>> 26 - 35</label> <br /> <label> <input type="radio" name="AGE GROUP" value="mid2" id="AGE GROUP_2" <?PHP print $mid2_status; ?>> 36 - 45</label> <br /> <label> <input type="radio" name="AGE GROUP" value="high" id="AGE GROUP_3"<?PHP print $high_status; ?>> Radio</label> </strong></span><strong><label></label> </strong><span class="style7"><strong> <label></label> </strong> <label></label> </span></p> <p> <label><span class="style6">UPLOAD PICTRE</span> <input type="file" name="upload" id="upload" /> </label> </p> <p> <label> <input type="submit" name="submit" id="submit" value="Submit" /> </label> </p> </form>
Last edited by Jaan; 10-30-2008 at 11:30 AM. Reason: Please use code tags when you're posting your codes!
Check out my two tutorials:
Introduction to Form Submission PART I
Introduction to Form Submission PART II
If all you want to do is email the results just change the form action to your email address.
Example:
If you want to do it via PHP follow Xav's tutorials.HTML Code:<form action="mailto:your@email.address" method="post" enctype="multipart/form-data" name="form1" class="style7" id="form1"> <label>EMAIL <input type="text" name="EMAIL" id="EMAIL" /> </label> <p> <label><span class="style6">GENDER</span> <input type="text" name="GENDER" id="GENDER" /> </label> </p> <p> <label> <span class="style6"> <input type="radio" name="AGE GROUP" value="low" id="AGE GROUP_0" <?PHP print $low_status; ?>> <strong>25 AND UNDER</strong></span></label> <span class="style6"><strong><br /> <label> <input type="radio" name="AGE GROUP" value="mid1" id="AGE GROUP_1" <?PHP print $mid1_status; ?>> 26 - 35</label> <br /> <label> <input type="radio" name="AGE GROUP" value="mid2" id="AGE GROUP_2" <?PHP print $mid2_status; ?>> 36 - 45</label> <br /> <label> <input type="radio" name="AGE GROUP" value="high" id="AGE GROUP_3"<?PHP print $high_status; ?>> Radio</label> </strong></span><strong><label></label> </strong><span class="style7"><strong> <label></label> </strong> <label></label> </span></p> <p> <label><span class="style6">UPLOAD PICTRE</span> <input type="file" name="upload" id="upload" /> </label> </p> <p> <label> <input type="submit" name="submit" id="submit" value="Submit" /> </label> </p> </form>
Maybe he doesn't know that he can do it via HTML.
He could use graceful email obfuscation technique to mask his email address...
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks