| View previous topic :: View next topic |
| Author |
Message |
tom fallow
Joined: 30 Dec 2005 Posts: 27 Location: PA
|
Posted: Tue Jan 17, 2006 2:33 am Post subject: using multple buttons to clear filefields... |
|
|
Hello all. I'm having trouple using buttons to clear individual filefields (there are 5).
Here is my code...
<input name="Deletephoto1" type="button" value="Delete Photo1" onClick="document1.form1.photo1.value=''"></td>
Any ideas would be much appreciated! |
|
| Back to top |
|
 |
Fed Site Admin

Joined: 12 Aug 2005 Posts: 176
|
Posted: Tue Jan 17, 2006 10:05 am Post subject: |
|
|
uh, I'd say it should work, the only weird thing I see there is: document1
shouldn't it be only document ? |
|
| Back to top |
|
 |
Fed Site Admin

Joined: 12 Aug 2005 Posts: 176
|
Posted: Tue Jan 17, 2006 10:11 am Post subject: |
|
|
| or maybe it should be put in a function and the recall the function onClick... |
|
| Back to top |
|
 |
tom fallow
Joined: 30 Dec 2005 Posts: 27 Location: PA
|
Posted: Tue Jan 17, 2006 6:58 pm Post subject: |
|
|
I think the issue is that I'm working with PHP pages. I tried everything I could think of to make it work yesterday. What I'm trying to do is to create a page where users can modify their 5 images. I guess I'm going to try using 5 file fields, each with a delete button (which deletes the file) and a submit button (which adds a file). Then I'll have on button at the bottom of the page which will take the user to a preview page.
If there is a better way to do this, please let me know as this is the only thing I could come up with!
Thanks,
Tom |
|
| Back to top |
|
 |
Fed Site Admin

Joined: 12 Aug 2005 Posts: 176
|
Posted: Tue Jan 17, 2006 7:07 pm Post subject: |
|
|
you could use the standard reset button so all the fields are resetted
if you try googling you might find something useful... |
|
| Back to top |
|
 |
|