Upload question

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
MiniMonty
Forum Contributor
Posts: 196
Joined: Thu Sep 03, 2009 9:09 am
Location: UK

Upload question

Post by MiniMonty »

Hi all,

I've inherited a project and I need to write a simple upload image script but this front end code is confusing me.
Not sure how to refer to it where I would normally use [fileField] or similar - nothing seems to work. Not sure
if it was put together by a programmer or designer !

Code: Select all

        <div class="listing-form-cont">
                <div class="applynow listing-form">
			 </div><!--end listing-form-cont-->
					<div class="listing-form-cont">
            	<div class="applynow listing-area">
                    <ul class="listing-image">
                    	<li><label>Image</label></li>
                        <li class="li-col2">
                        	<div class="listing-file">
  								<input type="file" onchange="document.getElementById('fileInputText').value = this.value;" size="25" id="fileInput">
  								<div id="listing-file-mask">
   								 	<input type="text" id="fileInputText">
  								</div>
							</div>
                        </li>
                        <li class="li-col3"><a href="#"><img src="images/remove.gif" alt="remove"></a></li>
                        <li class="li-col4">Upload less then 10mb</li>
                    </ul>
            	</div><!--end applynow-->
            </div>

Any advice much appreciated.

Best wishes
Monty
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Upload question

Post by requinix »

Does it use AJAX for the upload, or are you creating all this by yourself?
MiniMonty
Forum Contributor
Posts: 196
Joined: Thu Sep 03, 2009 9:09 am
Location: UK

Re: Upload question

Post by MiniMonty »

Changed a line and added name= and now it works fine.
Post Reply