Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Apr 2006
    Posts
    231
    Thanks
    9
    Thanked 1 Time in 1 Post

    Uploading & Forms

    Hey all,

    I have a photo upload system I am setting up. Besides the photo, form, I need to add a category input. Now, with a basic form I just do method="post". With my form I have enctype="multipart/form-data". would this work if I just put the input within this form, and declare it as $_POST["category"]; ?

  • #2
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    Yep, keep the method="POST" in the form tag and you can add normal form elements which will come through in the $_POST array.


  •  

    Posting Permissions

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