Click to See Complete Forum and Search --> : Submitting Ratings
ngoat
05-27-2003, 12:57 PM
I have created a page with pictures of antique cars and want to allow people to rate them on a scale of 1 to 5. I am having difficulty figuring out how to submit the ratings. I am looking for the easiest way to do this - nothing fancy. I am running:
Windows 2000 Server
IIS 5 with all the latest updates.
Thanks for the assistance!
Not sure how much detail you're looking for, but the best idea I can come up with is using a group of radio buttons for your 5 ratings. If you name every button in the group the same, but set Value="1" to "5", you should be able to store the value in your DB/file/whatever.
Something like:
<form method="post" action="sumbit.asp">
<input type="radio" name="Rating" Value="1">
<input type="radio" name="Rating" Value="2">
<input type="radio" name="Rating" Value="3">
<input type="radio" name="Rating" Value="4">
<input type="radio" name="Rating" Value="5">
<input type="submit" name="submit">
</form>
If you use "get"as your method, you will see "Rating=1" or whatever rating was selected sent to submit.asp in the querystring. If you use post, you can just read the value of "Rating" from within submit.asp.
Hope this helps,
TBor
ngoat
05-27-2003, 02:43 PM
Thanks. I am unfamiliar with asp. I will need to create the submit.asp form and ?. Will it need any special persmissions under IIS? Also, this rating system will be under 100 different cars, so do I just call on submit.asp or how does that work. Sorry for the blatant stupidity.
Thanks
If you're really new to ASP, and you aren't familiar with how to store submitted values from ASP (i.e. into a database, text file, etc.) that you take a look for some online tutorials about that - it's too much to get into here, plus there's already a lot of info out there. HTML Goodies has a pretty good primer - http://www.htmlgoodies.com/ASP/
If you're still having problems after that, I'll try my best to help out. I'm not trying to shrug you off or anything, I just think that you'll probably get more help from the primer than from a discussion in the forum.
Hope this helps,
TBor