P
paintballer100
Guest
Hey, I'm in a webpage publishing class, and I'm trying to simulate a site (http://php.badrouter.net/bnet/). In my version though, I am only including the "Spartan" armor varients. So I dont have to worry about the first perameter.
Basically, I'm trying to write some code where my drop down forms have a value set to them, and then, once the user presses a submit button, it will reload the page, and the values of their selections will change the "0" value in an image (http://php.badrouter.net/bnet/cache/0:0:0:0:0:0:0:0.jpg)
The page I'm trying to emulate uses Javascript. I'm trying to do this without using Javascript, seeing as how I am not very knowledgable in that language. It seems though, that I will have to use Javascript, so I'm wondering how to write/call classes in Javascript.
I'm still new to HTML, so as I describe this, I may use some Java terms, as I'm used to. Basically, I'm trying to see if I can have the code call the image, but somehow place a tag in the image so that it will call a certain class, and then it's value. Here's an example of what I'd like it to do (i know this doesn't work):
.../0:[Helmet.value]:[LeftShoulder.value]:[RightShoulder.value]:[BodyPlate.value]:[PrimaryColor.value]:[SecondaryColor.value]:[ArmorDetail.value]
Which would change the standard code of:
http://php.badrouter.net/bnet/cache/0:0:0:0:0:0:0:0.jpg
Can anyone help me out here? I'll post a link to pastebin, which will include my code, so that someone could look over it if they need to.
http://pastebin.com/m6496f4d7
Here's a section of my code. It will hopefully help describe what I'm looking for:
__________________________________________________________
<form method="POST" action="--WEBBOT-SELF--">
<!--webbot bot="SaveResults" u-file="T:\tisonhiland\armorgenerator\_private\form_results.csv" s-format="TEXT/CSV" s-label-fields="TRUE" --><p>
<b><font size="5" color="#00FFFF">Detail Color
</font></b><select size="1" name="DetailColor">
<option value="0" selected>Steel</option>
<option value="1">Silver</option>
__________________________________________________________
From here, I'd like to call the class "DetailColor" and the value of either 0 or 1, and then call it later in an image. Can anyone help me out here?
Basically, I'm trying to write some code where my drop down forms have a value set to them, and then, once the user presses a submit button, it will reload the page, and the values of their selections will change the "0" value in an image (http://php.badrouter.net/bnet/cache/0:0:0:0:0:0:0:0.jpg)
The page I'm trying to emulate uses Javascript. I'm trying to do this without using Javascript, seeing as how I am not very knowledgable in that language. It seems though, that I will have to use Javascript, so I'm wondering how to write/call classes in Javascript.
I'm still new to HTML, so as I describe this, I may use some Java terms, as I'm used to. Basically, I'm trying to see if I can have the code call the image, but somehow place a tag in the image so that it will call a certain class, and then it's value. Here's an example of what I'd like it to do (i know this doesn't work):
.../0:[Helmet.value]:[LeftShoulder.value]:[RightShoulder.value]:[BodyPlate.value]:[PrimaryColor.value]:[SecondaryColor.value]:[ArmorDetail.value]
Which would change the standard code of:
http://php.badrouter.net/bnet/cache/0:0:0:0:0:0:0:0.jpg
Can anyone help me out here? I'll post a link to pastebin, which will include my code, so that someone could look over it if they need to.
http://pastebin.com/m6496f4d7
Here's a section of my code. It will hopefully help describe what I'm looking for:
__________________________________________________________
<form method="POST" action="--WEBBOT-SELF--">
<!--webbot bot="SaveResults" u-file="T:\tisonhiland\armorgenerator\_private\form_results.csv" s-format="TEXT/CSV" s-label-fields="TRUE" --><p>
<b><font size="5" color="#00FFFF">Detail Color
</font></b><select size="1" name="DetailColor">
<option value="0" selected>Steel</option>
<option value="1">Silver</option>
__________________________________________________________
From here, I'd like to call the class "DetailColor" and the value of either 0 or 1, and then call it later in an image. Can anyone help me out here?