Welcome Guest, Not a member yet? Register   Sign In
text box name to a new folder and images uploaded to it.
#2

[eluser]pickupman[/eluser]
[quote author="roymayor" date="1274145498"]so i got ci uploaded and created the uploader using the examples online. i want to be able to have a text box on a page where a person can input their first and last name and it will create a folder with that name and the user can upload his images into that folder. can someone help me create something like that? so like a first and last name text box then a browse button to open the finder dialog box then a submit/upload button. then a success page? help!?[/quote]

That takes all of the fun away from you. How about trying it out first, so you can get a hand at learning the code. Post your code you are stuck on, and go from there.

HINT:
Code:
<?=form_open_multipart('upload/do_upload');?>
<p>
  &lt;?=form_label('First Name','first_name');?&gt;<br/>
  &lt;?=form_input('first_name',set_value('first_name');?&gt;
</p>
<p>
  &lt;?=form_label('Last Name','Last_name');?&gt;<br/>
  &lt;?=form_input('last_name',set_value('last_name');?&gt;
</p>
<p>
  &lt;?=form_label('Choose File','userfile');?&gt;<br/>
  &lt;?=form_upload('userfile');?&gt;
</p>
<p>
  &lt;?=form_submit('upload','Upload');?&gt;
</p>
&lt;?=form_close();?&gt;


Messages In This Thread
text box name to a new folder and images uploaded to it. - by El Forum - 05-18-2010, 07:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB