Jump to content

Archived

This topic is now archived and is closed to further replies.

pneudralics

form

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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]

Share this post


Link to post
Share on other sites
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]

Share this post


Link to post
Share on other sites
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:
[code]<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>[/code]

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

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.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.