elementz Posted March 31, 2006 Share Posted March 31, 2006 How would I go about adding other input boxes in an upload script? example script would be awsome.Thankyou,Luke Link to comment https://forums.phpfreaks.com/topic/6304-upload-script-question/ Share on other sites More sharing options...
Guest footballkid4 Posted April 1, 2006 Share Posted April 1, 2006 [!--html--][div class=\'htmltop\']HTML[/div][div class=\'htmlmain\'][!--html1--]<[color=blue]input type[/color]="[color=orange]file[/color]" name="[color=orange]upload[][/color]" /><[color=blue]input type[/color]="[color=orange]file[/color]" name="[color=orange]upload[][/color]" />[!--html2--][/div][!--html3--]The PHP:[code]<?phpif ( isset( $_FILES['upload'] ) ){ foreach ( $_FILES['upload'] as $key=>$val ) { //identical array keys as $_FILES['name'], but use $val instead }}?>[/code] Link to comment https://forums.phpfreaks.com/topic/6304-upload-script-question/#findComment-22820 Share on other sites More sharing options...
elementz Posted April 1, 2006 Author Share Posted April 1, 2006 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,LukeI mean as in same variable as if the upload input box wasn't there. Link to comment https://forums.phpfreaks.com/topic/6304-upload-script-question/#findComment-22826 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.