Closed Thread
Results 1 to 8 of 8

Thread: Very Simple Help ... Im sure

  1. #1
    amped designs is offline Newbie
    Join Date
    Oct 2008
    Posts
    1
    Rep Power
    0

    Very Simple Help ... Im sure

    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.

    Code:
    <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
    Last edited by Jaan; 10-30-2008 at 11:30 AM. Reason: Please use code tags when you're posting your codes!

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Join Date
    Mar 2008
    Location
    The North Pole
    Posts
    13,174
    Blog Entries
    13
    Rep Power
    114

    Re: Very Simple Help ... Im sure


    Quote Originally Posted by Jordan View Post
    Good members, like yourself, stick around and post for ages to come!
    Mr. Xav | Blog | Forums

  4. #3
    Jordan Guest

    Re: Very Simple Help ... Im sure

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

    Example:

    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>
    If you want to do it via PHP follow Xav's tutorials.

  5. #4
    Join Date
    Mar 2008
    Location
    The North Pole
    Posts
    13,174
    Blog Entries
    13
    Rep Power
    114

    Re: Very Simple Help ... Im sure

    basically I need to make the back end php page
    He wants to do it via PHP.

    Quote Originally Posted by Jordan View Post
    Good members, like yourself, stick around and post for ages to come!
    Mr. Xav | Blog | Forums

  6. #5
    Jordan Guest

    Re: Very Simple Help ... Im sure

    Maybe he doesn't know that he can do it via HTML.

  7. #6
    Join Date
    Mar 2008
    Location
    The North Pole
    Posts
    13,174
    Blog Entries
    13
    Rep Power
    114

    Re: Very Simple Help ... Im sure

    Maybe he doesn't want spammers to eat his email address and send him fifty Viagra adverts a day.

    Quote Originally Posted by Jordan View Post
    Good members, like yourself, stick around and post for ages to come!
    Mr. Xav | Blog | Forums

  8. #7
    Join Date
    Jul 2006
    Location
    Amherst, New York, United States
    Posts
    6,277
    Blog Entries
    26
    Rep Power
    20

    Re: Very Simple Help ... Im sure

    He could use graceful email obfuscation technique to mask his email address...

  9. #8
    Join Date
    Mar 2008
    Location
    The North Pole
    Posts
    13,174
    Blog Entries
    13
    Rep Power
    114

    Re: Very Simple Help ... Im sure

    Or he could just do the PHP Form and get more control over the whole process, which is what he asked for.

    Quote Originally Posted by Jordan View Post
    Good members, like yourself, stick around and post for ages to come!
    Mr. Xav | Blog | Forums

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 10-13-2011, 08:52 PM
  2. I'm stumped by this simple, simple code...
    By scottbomb in forum Java Help
    Replies: 6
    Last Post: 03-10-2011, 08:35 PM
  3. Simple 2D Example
    By OutcastOrange in forum C and C++
    Replies: 10
    Last Post: 09-20-2009, 03:19 PM
  4. The simple are often the best
    By Rudd in forum General Programming
    Replies: 0
    Last Post: 11-10-2008, 11:46 PM
  5. Simple help please.
    By Skel in forum Visual Basic Programming
    Replies: 4
    Last Post: 11-06-2007, 02:06 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts