Jump to content

Very Simple Help ... Im sure

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
7 replies to this topic

#1
amped designs

amped designs

    Newbie

  • Members
  • Pip
  • 1 posts
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.

<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>      

basically I need to make the back end php page and Im not sure how to do that appropriately...any help would be greatly appreciated

Edited by Jaan, 30 October 2008 - 10:30 AM.
Please use code tags when you're posting your codes!


#2
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
Check out my two tutorials:

http://forum.codecal...ion-part-i.html
http://forum.codecal...on-part-ii.html
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#3
Guest_Jordan_*

Guest_Jordan_*
  • Guests
If all you want to do is email the results just change the form action to your email address.

Example:

<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>

If you want to do it via PHP follow Xav's tutorials.

#4
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts

Quote

basically I need to make the back end php page

He wants to do it via PHP.
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#5
Guest_Jordan_*

Guest_Jordan_*
  • Guests
Maybe he doesn't know that he can do it via HTML.

#6
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
Maybe he doesn't want spammers to eat his email address and send him fifty Viagra adverts a day.
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#7
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts
He could use graceful email obfuscation technique to mask his email address...

#8
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
Or he could just do the PHP Form and get more control over the whole process, which is what he asked for.
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums