Jump to content


Photo

form


  • Please log in to reply
3 replies to this topic

#1 pneudralics

pneudralics
  • Members
  • PipPipPip
  • Advanced Member
  • 241 posts

Posted 19 March 2006 - 11:47 PM

I see alot of forms help but nothing on how to add an upload section to the form too. I'll like all the usual name,email, etc but I'll also like for people to be able to upload a picture. Anyone know of any tuturials out there? Thanks.

#2 earl_dc10

earl_dc10
  • Members
  • PipPipPip
  • Advanced Member
  • 71 posts

Posted 19 March 2006 - 11:57 PM

a quick google search "how to upload on a form" yielded a number of results, the first one looked like a winner
[a href=\"http://cgi-lib.berkeley.edu/ex/fup.html\" target=\"_blank\"]here[/a]
got a problem? Google helps many of those in need

#3 hitman6003

hitman6003
  • Members
  • PipPipPip
  • Advanced Member
  • 1,807 posts

Posted 20 March 2006 - 12:16 AM

The manual is another excellent place to look:

[a href=\"http://us3.php.net/manual/en/features.file-upload.php\" target=\"_blank\"]http://us3.php.net/manual/en/features.file-upload.php[/a]

#4 pneudralics

pneudralics
  • Members
  • PipPipPip
  • Advanced Member
  • 241 posts

Posted 20 March 2006 - 06:29 AM

I have a registration submit form..then after they submit the form it leads to an upload form. How would I add that with the registration form?



current upload pictures:
<form method="post" action="{%LINK_FORM%}" enctype="multipart/form-data">
    <div><input type="hidden" name="step" value="2" /></div>
    <div><input type="hidden" name="user" value="{%POST_user%}" /></div>

    {%LANG_please_upload%}

    <div style="padding-left:20px;padding-top:20px;">
    
    <div style="padding-bottom:6px;">
        {%LANG_image%} {%ERROR%}
        <div style="padding:4px;">
        <input type="file" name="image" size="30" />
        </div>
    </div>    
    
    <div style="padding:10px;">
        <input type="submit" value="{%LANG_upload_pic%}" style="cursor:pointer;" /> 
    </div>

    </div>
    </form>

current submit input from registration.
fields
fields
fields
goes down to submit..
<input type="submit" value=" {%lang_submit_form%} " style="cursor:pointer;" />

Is there a way to add that together so that there will be an upload box as part of the registration form? I've seen it before just don't know how to do it. Maybe add it in the submit input somehow??

Thanks for the help.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users