upload music(mp3s etc.) to site

Enable users to upload music(mp3s etc.) to my site

Page 1 of 1

4 Replies - 900 Views - Last Post: 14 May 2009 - 07:39 PM

#1 Ian confused  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 09-May 09

upload music(mp3s etc.) to site

Post icon  Posted 09 May 2009 - 10:17 AM

Hello my name is Ian confused. I know very little about programing and need some one to help find the necessary code that will enable users to upload music(mp3, wav, etc.) to my site. Here is the the HTML code for my web form page:
<html>
<head>
<title>car_radio_template2</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="Javascript" type="text/Javascript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
	document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<div id="Layer1" style="position:absolute; width:75%px; height:115px; z-index:3; left: 301px; top: 367px;">
  <form action="cgi-bin/myscript.cgi" method="post" enctype="multipart/form-data" name="Upload Form" id="Upload Form"><fieldset>
<legend><font face="Arial, Helvetica, sans-serif">
<input name="recipient" type="hidden" id="recipient" value="ian.ijdesign@gmail.com">
<input name="required" type="hidden" id="required" value="name,email">
Band/Artist: Name</font></legend>
<table width="100%"  border="0" cellspacing="1" cellpadding="2" summary="Table used for form layoput purposes">
  <tr>
	<td><font face="Arial, Helvetica, sans-serif">Name</font></td>
	<td>&nbsp;</td>
  </tr>
  <tr>
	<td><font face="Arial, Helvetica, sans-serif">Email</font></td>
	<td>&nbsp;</td>
  </tr>
</table>

</fieldset>
<fieldset><legend><font face="Arial, Helvetica, sans-serif">Music Genre</font></legend>
<table width="100%"  border="0" cellspacing="1" cellpadding="2" summary="Table for form layout purposes">
  <tr>
	<td width="56%"><font face="Arial, Helvetica, sans-serif">Music Type </font></td>
	<td width="44%"><select name="Music Genre" id="Music Genre">
	  <option value="Rock">Rock</option>
	  <option value="Blues">Blues</option>
	  <option value="Punk">Punk</option>
	  <option value="Jazz">Jazz</option>
	  <option value="Folk">Folk</option>
	  <option value="Classical">Classical</option>
	</select></td>
  </tr>
  <tr>
	<td><font face="Arial, Helvetica, sans-serif">Music Category</font> </td>
	<td>&nbsp;</td>
  </tr>
  <tr>
	<td><font face="Arial, Helvetica, sans-serif">mp3 to Upload</font> </td>
	<td><input name="Upload" type="file" id="Upload" size="25" maxlength="150"></td>
  </tr>
  <tr>
	<td colspan="2"><label><font face="Arial, Helvetica, sans-serif">Do you wish to be contacted by phone?</font></label>
	  <input type="checkbox" name="checkbox" value="Yes">
	  <font face="Arial, Helvetica, sans-serif">Yes!&nbsp;</font></td>
	</tr>
  <tr>
	<td colspan="2"><label><font face="Arial, Helvetica, sans-serif">Comments:<br>
	  <textarea name="textarea" cols="40" rows="4"></textarea>
	</font></label>&nbsp;</td>
	</tr>
  <tr>
	<td>&nbsp;</td>
	<td><input type="submit" name="Submit" value="Submit">
	  <input name="reset" type="reset" id="reset" value="Reset"></td>
  </tr>
</table>
</fieldset>
</form>
</div>
<div id="Layer2" style="position:absolute; width:200px; height:115px; z-index:2;top:250px;"><img src="images/nyum_big_label3.jpg" width="250" height="253"/></div>
<!-- ImageReady Slices (car_radio_template2.psd) -->
<table id="Table_01" width="1001" height="1001" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td colspan="17">
			<img src="images/car_radio_template2_01.gif" width="1000" height="96" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="1" height="96" alt=""></td>
	</tr>
	<tr>
		<td colspan="15">
			<img src="images/car_radio_template2_02.gif" width="819" height="7" alt=""></td>
		<td rowspan="3">
			<a href="/info.htm"><img src="images/info.jpg" alt="" width="142" height="127" border="0"></a></td>
		<td rowspan="9">
			<img src="images/car_radio_template2_04.gif" width="39" height="904" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="1" height="7" alt=""></td>
	</tr>
	<tr>
		<td rowspan="8">
			<img src="images/car_radio_template2_05.gif" width="44" height="897" alt=""></td>
		<td rowspan="3">
			<a href="/index.html"><img src="images/Home_button.gif" alt="" width="143" height="121" border="0"></a></td>
		<td colspan="13">
			<img src="images/car_radio_template2_07.gif" width="632" height="92" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="1" height="92" alt=""></td>
	</tr>
	<tr>
		<td colspan="2" rowspan="3">
			<img src="images/car_radio_template2_08.gif" width="176" height="78" alt=""></td>
		<td colspan="9" rowspan="2">
			<a href="/classical.htm"><img src="images/classical-button.gif" alt="" width="326" height="29" border="0"></a></td>
		<td colspan="2" rowspan="3">
			<img src="images/car_radio_template2_10.gif" width="130" height="78" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="1" height="28" alt=""></td>
	</tr>
	<tr>
		<td rowspan="6">
			<img src="images/car_radio_template2_11.gif" width="142" height="777" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="1" height="1" alt=""></td>
	</tr>
	<tr>
		<td rowspan="5">
			<img src="images/car_radio_template2_12.gif" width="143" height="776" alt=""></td>
		<td colspan="9">
			<img src="images/car_radio_template2_13.gif" width="326" height="49" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="1" height="49" alt=""></td>
	</tr>
	<tr>
		<td rowspan="4">
			<img src="images/car_radio_template2_14.gif" width="102" height="727" alt=""></td>
		<td colspan="2" rowspan="3">
			<a href="/rock.htm"><img src="images/rock-button.gif" alt="" width="80" height="70" border="0"></a></td>
		<td rowspan="4">
			<img src="images/car_radio_template2_16.gif" width="9" height="727" alt=""></td>
		<td rowspan="2">
			<a href="/blues.htm"><img src="images/blues-button.gif" alt="" width="74" height="69" border="0"></a></td>
		<td rowspan="4">
			<img src="images/car_radio_template2_18.gif" width="11" height="727" alt=""></td>
		<td rowspan="2">
			<a href="/punk.htm"><img src="images/punk-button.gif" alt="" width="79" height="69" border="0"></a></td>
		<td rowspan="4">
			<img src="images/car_radio_template2_20.gif" width="10" height="727" alt=""></td>
		<td>
			<a href="/jazz.htm"><img src="images/jazz-button.gif" alt="" width="78" height="68" border="0"></a></td>
		<td rowspan="4">
			<img src="images/car_radio_template2_22.gif" width="10" height="727" alt=""></td>
		<td colspan="2">
			<a href="/folk.htm"><img src="images/folk-button.jpg" alt="" width="81" height="68" border="0"></a></td>
		<td rowspan="4">
			<img src="images/car_radio_template2_24.gif" width="98" height="727" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="1" height="68" alt=""></td>
	</tr>
	<tr>
		<td rowspan="3">
			<img src="images/car_radio_template2_25.gif" width="78" height="659" alt=""></td>
		<td colspan="2" rowspan="3">
			<img src="images/car_radio_template2_26.gif" width="81" height="659" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="1" height="1" alt=""></td>
	</tr>
	<tr>
		<td rowspan="2">
			<img src="images/car_radio_template2_27.gif" width="74" height="658" alt=""></td>
		<td rowspan="2">
			<img src="images/car_radio_template2_28.gif" width="79" height="658" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="1" height="1" alt=""></td>
	</tr>
	<tr>
		<td colspan="2">
			<img src="images/car_radio_template2_29.gif" width="80" height="657" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="1" height="657" alt=""></td>
	</tr>
	<tr>
		<td>
			<img src="images/spacer.gif" width="44" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="143" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="102" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="74" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="6" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="9" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="74" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="11" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="79" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="10" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="78" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="10" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="49" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="32" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="98" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="142" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="39" height="1" alt=""></td>
		<td></td>
	</tr>
</table>
<!-- End ImageReady Slices -->
</body>
</html>


I would greatly appreciate any help or at least if some one could point me in the right direction. I know this is asking for a lot but i can't wait to get this site up and running properly .

Sincerely,
Ian confused

Is This A Good Question/Topic? 0
  • +

Replies To: upload music(mp3s etc.) to site

#2 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1619
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: upload music(mp3s etc.) to site

Posted 09 May 2009 - 10:43 AM

Well since this has absolutely nothing to do with C/C++, and no language was specified by you I'm moving this to the Web Development forum :)
Was This Post Helpful? 0
  • +
  • -

#3 BenAshton24  Icon User is offline

  • New D.I.C Head

Reputation: 2
  • View blog
  • Posts: 18
  • Joined: 26-October 08

Re: upload music(mp3s etc.) to site

Posted 09 May 2009 - 06:10 PM

Hey, You might want to look into using PHP to achieve your goal, at the moment when your form submits it sends the data via the POST method to a CGI script, if you want to do it with CGI then that is possible however PHP is soooo much easier (In my opinion).

For achieving your goal with CGI check out this link: http://webdesign.abo.../a/aa030899.htm

However to do it with php, check out this link... If you're new to all this stuff then it will be completely baffling, but just stick with it and it all makes sense in no time :)
Check out this link :) http://www.tizag.com.../fileupload.php
Was This Post Helpful? 0
  • +
  • -

#4 Ian confused  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 09-May 09

Re: upload music(mp3s etc.) to site

Posted 14 May 2009 - 07:17 PM

Thanks for the heads up,

I will definitely look into PHP and the link you sent me. Also thanks for the encouragement.

regards,
Ian







View PostBenAshton24, on 9 May, 2009 - 05:10 PM, said:

Hey, You might want to look into using PHP to achieve your goal, at the moment when your form submits it sends the data via the POST method to a CGI script, if you want to do it with CGI then that is possible however PHP is soooo much easier (In my opinion).

For achieving your goal with CGI check out this link: http://webdesign.abo.../a/aa030899.htm

However to do it with php, check out this link... If you're new to all this stuff then it will be completely baffling, but just stick with it and it all makes sense in no time :)
Check out this link :) http://www.tizag.com.../fileupload.php

Was This Post Helpful? 0
  • +
  • -

#5 Ian confused  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 09-May 09

Re: upload music(mp3s etc.) to site

Posted 14 May 2009 - 07:39 PM

Thanks,

I guess the right forum would help. LOL So far some one has recommended PHP. My Dreamweaver book said that Pearl would do the trick. anyways thanks for taking your time out of your day.

regards,
Ian


View PostPsychoCoder, on 9 May, 2009 - 09:43 AM, said:

Well since this has absolutely nothing to do with C/C++, and no language was specified by you I'm moving this to the Web Development forum :)

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1