Reply to Radio Buttons used for FileUploaders?

Your name:

Reply:


Posted by Johnny on 12/30/07 05:26

I need some help guys. I'm trying to modify a working MIDI ringtone
uploader (HTML code) to use radio buttons rather than the standard
"<INPUT type=>" file selector so the user doesn't have to browse and
choose from hundreds of MIDI files or manually type the MIDI filename
into the input box.


How do I replace this:

<INPUT type=file name=file>

With FOUR simple radio buttons like this:

<input type="radio" name="song" value="song1.mid">
<input type="radio" name="song" value="song2.mid">
<input type="radio" name="song" value="song3.mid">
<input type="radio" name="song" value="song4.mid">

When I replace <INPUT type=file name=file> with the above radio
buttons and try it out the server returns this error: "Upload Failed,
Please Pickup a valid audio file".

But the files are VALID they work fine using <INPUT type=file
name=file> but not with the radio buttons. What am I missing here? The
MIDI's are in the same directory as the HTML file, I even tried
changing the radio button values to the "Exact" file location ie:
value="c:/midi/song1.mid" and it still doesn't work. Any suggestions?
I'm willing to use a drop down box instead but I'd need to see some
sample code of how that's done.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация