Jump to content


Photo

Upload Script Question


  • Please log in to reply
2 replies to this topic

#1 elementz

elementz
  • Members
  • PipPipPip
  • Advanced Member
  • 36 posts

Posted 31 March 2006 - 10:58 PM

How would I go about adding other input boxes in an upload script? example script would be awsome.

Thankyou,
Luke

#2 Guest_footballkid4_*

Guest_footballkid4_*
  • Guests

Posted 01 April 2006 - 05:17 AM

[!--html--][div class=\'htmltop\']HTML[/div][div class=\'htmlmain\'][!--html1--]<input type="file" name="upload[]" />
<input type="file" name="upload[]" />[!--html2--][/div][!--html3--]

The PHP:
<?php
if ( isset( $_FILES['upload'] ) )
{
     foreach ( $_FILES['upload'] as $key=>$val )
     {
          //identical array keys as $_FILES['name'], but use $val instead
     }
}
?>


#3 elementz

elementz
  • Members
  • PipPipPip
  • Advanced Member
  • 36 posts

Posted 01 April 2006 - 06:33 AM

I meant normal input boxes that you can write in, not upload ones and what will the variables come up as? Also how do I make the submit button an image?

Thankyou,
Luke

I mean as in same variable as if the upload input box wasn't there.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users