Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Old 01-17-2004, 03:27 PM Advanced Form Help
wbstein's Avatar
Super Talker

Posts: 122
Location: Maryland, USA
Trades: 0
I need help with a form I want to make.


This is what I'm looking to do:

The form will have three fields.
  • 1.) Artist
    2.) Title
    3.) <browse for song> (upload)


Then the file audiolist.xml will be edited.
A new line will be created with the following:
<song path="field 3" bild="no image needed for user submit" artist="field 1" title="field 2"/>

All I need to do is make it so that when the form is submitted, it adds a line with the code above, and insert's whatever they put for field 1, 2, and 3.

This would be a great help, thank you very much for you're time.
I'll be checking back soon, so if you have any questions feel free to post.


P.S. You can see it in the making here: www.bcworld.org/music/music2.swf
wbstein is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-18-2004, 02:55 PM
ACJavascript's Avatar
Humble Mod

Posts: 548
Location: CT, USA
Trades: 0
What language would you like it in ?

PHP or Perl

will you be giving credit ? hehe
__________________

Please login or register to view this content. Registration is FREE
- 100 Satisfied Customers - Custom Programming and Web Development
ACJavascript is offline
Reply With Quote
View Public Profile Visit ACJavascript's homepage!
 
Old 01-18-2004, 03:21 PM
wbstein's Avatar
Super Talker

Posts: 122
Location: Maryland, USA
Trades: 0
PHP should work fine.

and you'll be given credit however you feel fit.

(+ if you do a good job, you'll definitely be considered as a freelance programmer for our clients when the needs come around. mansei! design.)

Here is what audiolist.xml looks like:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<songs>
   <song path="http://www.bcworld.org/music/rhcp.mp3" bild="http://www.bcworld.org/music/rhcp.jpg" artist="Red Hot Chili Peppers" title="Fortune Faded"/>
   <song path="http://www.bcworld.org/music/argitoth.mp3" bild="http://www.bcworld.org/music/argitoth.jpg" artist="Argitoth" title="Koninklijik's Palace of Time"/>
   <song path="http://www.bcworld.org/music/billyhonesty.mp3" bild="http://www.bcworld.org/music/honesty.jpg" artist="Billy Talent" title="Honesty"/>
   <song path="http://www.bcworld.org/music/blinkadam.mp3" bild="http://www.bcworld.org/music/adamsong.jpg" artist="Blink 182" title="Adams Song"/>
   <song path="http://www.bcworld.org/music/fightbrave.mp3" bild="http://www.bcworld.org/music/rhcp.gif" artist="Red Hot Chili Peppers" title="Fight Like a Brave"/>
   <song path="http://www.bcworld.org/music/gracehate.mp3" bild="http://www.bcworld.org/music/hateeverything.jpg" artist="Three Days Grace" title="I hate everything about you"/>
   <song path="http://www.bcworld.org/music/graceyou.mp3" bild="http://www.bcworld.org/music/hateeverything.jpg" artist="Three Days Grace" title="Just Like You"/>
   <song path="http://www.bcworld.org/music/prodbreathe.mp3" bild="http://www.bcworld.org/music/prod.jpg" artist="Prodidgy" title="Breathe"/>
   <song path="http://www.bcworld.org/music/proddiesel.mp3" bild="http://www.bcworld.org/music/prod.jpg" artist="Prodidgy" title="Diesel Power"/>
   <song path="http://www.bcworld.org/music/prodfunky.mp3" bild="http://www.bcworld.org/music/prod.jpg" artist="Prodidgy" title="Funky ****"/>
   <song path="http://www.bcworld.org/music/prodmindfield.mp3" bild="http://www.bcworld.org/music/prod.jpg" artist="Prodidgy" title="Mind Field"/>
   <song path="http://www.bcworld.org/music/prodnarayan.mp3" bild="http://www.bcworld.org/music/prod.jpg" artist="Prodidgy" title="Narayan"/>
   <song path="http://www.bcworld.org/music/prodsmack.mp3" bild="http://www.bcworld.org/music/prod.jpg" artist="Prodidgy" title="Smack My ***** up"/>
   <song path="http://www.bcworld.org/music/remman.mp3" bild="http://www.bcworld.org/music/manmoon.jpg" artist="REM" title="Man on the Moon"/>
   <song path="http://www.bcworld.org/music/remreligion.mp3" bild="http://www.bcworld.org/music/losingreligion.jpg" artist="REM" title="Losing My Religion"/>
   <song path="http://www.bcworld.org/music/serenitynow.mp3" bild="http://www.bcworld.org/music/godsmack.jpg" artist="Godsmack" title="Serenity"/>
   <song path="http://www.bcworld.org/music/saltydog.mp3" bild="http://www.bcworld.org/music/saltydog.jpg" artist="Flogging Molly" title="Salty Dog"/>
   
</songs>
As you can see, when a song is added, it will simple add a new line with the entered data from the fields. </songs> will also need to be added to the end.

You will notice a photo album picture "bild". That would normally be left blank as it's too much of a hassle to have them submit a 50x50 album shot.

It really is pretty simple to do.
Thanks for you're help.
wbstein is offline
Reply With Quote
View Public Profile
 
Old 01-18-2004, 03:32 PM
ACJavascript's Avatar
Humble Mod

Posts: 548
Location: CT, USA
Trades: 0
VERY COOL

one quick question, do you want me to make the upload code?

or just update the xml file?
__________________

Please login or register to view this content. Registration is FREE
- 100 Satisfied Customers - Custom Programming and Web Development
ACJavascript is offline
Reply With Quote
View Public Profile Visit ACJavascript's homepage!
 
Old 01-18-2004, 04:30 PM
wbstein's Avatar
Super Talker

Posts: 122
Location: Maryland, USA
Trades: 0
I need a working form, right now I have nothing.
wbstein is offline
Reply With Quote
View Public Profile
 
Old 01-18-2004, 04:32 PM
ACJavascript's Avatar
Humble Mod

Posts: 548
Location: CT, USA
Trades: 0
Okay
__________________

Please login or register to view this content. Registration is FREE
- 100 Satisfied Customers - Custom Programming and Web Development
ACJavascript is offline
Reply With Quote
View Public Profile Visit ACJavascript's homepage!
 
Old 01-18-2004, 04:55 PM
wbstein's Avatar
Super Talker

Posts: 122
Location: Maryland, USA
Trades: 0
Feel free to communicate directly -

will@lavashark.com,
AIM: imwillstein
MSN: willstein123@hotmail.com
wbstein is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Advanced Form Help
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.53937 seconds with 12 queries