J
Johnny
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.
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.