Tutorialstream.com Forum Index
 FAQ   Search   Members   Usergroups   Register   Profile   Log in to check your private messages   Log in 

Log in
Username:    Password:      Log me on automatically each visit    
using multple buttons to clear filefields...

 
Post new topic   Reply to topic    Tutorialstream.com Forum Index -> Web Design
View previous topic :: View next topic  
Author Message
tom fallow



Joined: 30 Dec 2005
Posts: 27
Location: PA

PostPosted: Tue Jan 17, 2006 2:33 am    Post subject: using multple buttons to clear filefields... Reply with quote

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
View user's profile Send private message
Fed
Site Admin


Joined: 12 Aug 2005
Posts: 176

PostPosted: Tue Jan 17, 2006 10:05 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Fed
Site Admin


Joined: 12 Aug 2005
Posts: 176

PostPosted: Tue Jan 17, 2006 10:11 am    Post subject: Reply with quote

or maybe it should be put in a function and the recall the function onClick...
Back to top
View user's profile Send private message Send e-mail Visit poster's website
tom fallow



Joined: 30 Dec 2005
Posts: 27
Location: PA

PostPosted: Tue Jan 17, 2006 6:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
Fed
Site Admin


Joined: 12 Aug 2005
Posts: 176

PostPosted: Tue Jan 17, 2006 7:07 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Tutorialstream.com Forum Index -> Web Design All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

phpBB SEO URLs V2 - Icons by Mark James

Powered by phpBB © 2001, 2005 phpBB Group