View Single Post
Old 03-08-2011, 06:40 PM   #7 (permalink)
captainmerton
The Acquainted
 
captainmerton's Avatar
 
Join Date: May 2009
Posts: 178
Thanks: 9
captainmerton is on a distinguished road
Default

I cant get this to work. Think i need to go read a javascript book. So i still have the img in the html then hidden using the css as detailed above. I assume i can just cut and paste the script section above into my html and it should work or am i missing something?

The form remains unchanged apart from the img:

PHP Code:
<form name="addimage" method="post" enctype="multipart/form-data"  action="">
<
table class="forms">
    <
tr>
    <
td colspan="2">
    <
h3>Add Picture</h3>
    </
td>
    </
tr>
    <
tr>
    <
td colspan="2"><img class="pleasewait" src="images/pleasewait.gif"></td>
    </
tr>
    <
tr>
    <
td>
        <
label for="alt">Image Text*</label>
    </
td>
    <
td>
        <
input type='text' name='alt' id='alt' size='20' maxlength='100'>
    </
td>
    </
tr>
    <
tr>
    <
td><input type="file" name="image"></td>
     <
td><input name="Submit" type="submit" value="Upload Picture"></td>
    </
tr>
</
table>
</
form
captainmerton is offline  
Reply With Quote