Users browsing this thread: 3 Guest(s)
Code help
#1
Code:
<div class="field-items request"><div class="field-item"><form action="/request" method="post" class="request"><input type="submit" value="Request &quot;The Request Name&quot;"></form>
</div></div>

What does this mean exactly? I understand it's a forum to request a thing, but in what way are they requesting?
M A C H I N E G U N
         ⌒°。>◡<)⌒°
             /_▄︻し┻┳═一(いち)(いち)  ┣¨┣¨┣¨┣¨┣¨┣¨┣¨┣¨┣¨┣¨┣¨
[Image: tumblr_mr2bjoHi1v1qh8espo1_400.gif][Image: NfIxSTK.gif]
Thanked by:
#2
Well... some context would help glean more information about what's going on here, but from what I gather, it's sending 'Request "The Request Name"' to a page called "request" in the root directory.

Is there Javascript on the page? It might be altering what's being sent.
Thanked by:
#3
(08-10-2013, 06:50 PM)Kat Wrote:
Code:
<div class="field-items request"><div class="field-item"><form action="/request" method="post" class="request"><input type="submit" value="Request &quot;The Request Name&quot;"></form>
</div></div>

What does this mean exactly? I understand it's a forum to request a thing, but in what way are they requesting?

That doesn't appear to be anything except a "Submit button" - when you click on it, it will take you to the index page of the /request folder - It's using POST to transfer data across so unless there's some code we're missing it's going to go there and the only information it'll have is ' Request "The Request Name" ' - This is probably supposed to be changed by some dynamic element like PHP though.

If you've got a little more code for us to look at we should be able to help you out more.
Thanked by:
#4
I'm looking at code so that way maybe I can make an updateable m3u file for an online radio station for video game/anime music (and occasional special podcasts). Trying to learn shit on my own by looking at code at a couple of sites that do a similar thing I'm hoping to actually be able to pull off a similar thing.

(I wanna make a request system, you sign and log in, can request 5 songs at a time (one you request plays, you can request another song, songs that have already been requested and haven't played yet can't be requested again) and can post in forums to make suggestions and other things of that nature. Still working out the kinks buuuuuut, if you wanna help me and/or point me to the right places to learn, please do so)

Also if you do point me in a direction to do into and learn, please let it not be Javascript doing math, I've seen enough of that shit to last a lifetime.
M A C H I N E G U N
         ⌒°。>◡<)⌒°
             /_▄︻し┻┳═一(いち)(いち)  ┣¨┣¨┣¨┣¨┣¨┣¨┣¨┣¨┣¨┣¨┣¨
[Image: tumblr_mr2bjoHi1v1qh8espo1_400.gif][Image: NfIxSTK.gif]
Thanked by:
#5
You're looking at something dynamic then.

Have you got a login system implemented? If not I can let you look at the code snippets I use when creating a secure login system - from there you can wrap it around your request system which would be a HTML Form which will POST to a PHP page, it'll either add the info to a DB or will append the song to the end of the playlist file.

I can think of a couple of ways to do what you're looking for, if you want some advice let me know. You should still have me on Skype (or was it MSN?).
Thanked by:
#6
I'm on Skype nowadays, MSN kinda collided with Skype anyway I think a few months back, but yes this would be fantastic! I don't have a login system implemented or anything at all yet. I'm a baby to Javascript, but HTML is something I have a bit of knowledge in. I've just been practicing on a throwaway forum for basic ideas of what I want. (Not really able to do waaaaay too much other then the general format that I want the music pages to be in, I'm likely going to change that anyway.) But no, if this is going a place then I'm likely going to get a domain asap! (Hosting is gonna be provided by my roommate until if/when I generate too much traffic.)

From what I can see, I don't think I have you on skype. I'm Lunyka14 (Display name Kat) on there, if you post your name here I'll add you on it unless you add me first.

Also you mentioning PHP, looked into it, realized it is going to be more helpful then Javascript for the things I want so I'm gonna start looking up info on that as well while I away our talks~
M A C H I N E G U N
         ⌒°。>◡<)⌒°
             /_▄︻し┻┳═一(いち)(いち)  ┣¨┣¨┣¨┣¨┣¨┣¨┣¨┣¨┣¨┣¨┣¨
[Image: tumblr_mr2bjoHi1v1qh8espo1_400.gif][Image: NfIxSTK.gif]
Thanked by:


Forum Jump: