Log in

View Full Version : Few Questions...



holden89
04-28-2006, 02:06 PM
Hi, I have a few questions I was hoping someone could answer...

I would like to know if anyone has a poll script? I suck at creating html code outside of design view! If anyone has a script they have come across on their travels, I would really appreciate it.

My site never seems to work properly with forms. I can do it fine and it should work, but it doesnt. Is their any script or tutorials anyone has... just send me in the right direction... Right now i just have it as mailto:.... so i guess that doesnt matter...!

Is there any way to get images to come up quicker? I dont know about you, but I have broadband, and my site still takes a while to load because of the pictures. I saw something on dynamic drive that had a loading thing while the pictures loaded, but that didnt work... That would be cool, but i think a novelty!

I know I had a few other questions but I have totally forgot. I will reply if I remember...

Cheers, Daniel

Freeman
04-30-2006, 04:52 AM
What kind of poll script are you looking for? Are you looking the script to be able to send it to where you want to or do you want to know how to build your own questions? JF

djr33
04-30-2006, 05:24 AM
I can do it fine and it should work, but it doesnt.Sorry... no offense, but it IS you. Forms are one of the most compatible things... what doesn't work, exactly?

Ah. Mailto... ew. Google a free form interpreter, or, if feeling bold, look into coding one for yourself in php. Much nicer, I say.... but, yes, you must look at the code.

Images take time to load. It's based on the speed of the connection, both from the server and recipient, and the filesize. There's nothing you can do.
EXCEPT you can save your images at lower quality/size and they will be smaller. With good jpg compression, it won't even be noticable.
The thing on DD isn't to make them load faster, but just to show you a progress bar. Worthless in many ways... but kinda fun. Not for every page, certainly.


Poll:
this isn't pure html. Not a chance.
1. You need to code an html form (or, maybe, links).
2. You need to verify that the person isn't voting twice (unless you want them to be able to, heh.) The best way is to check their IP address.
3. You need to store this data somewhere (database ;))
4. You need to display the results on a page.

Steps 2-4 are done quite easily in php. Takes some getting used to, but, yeah. Gotta do it.

You could use cgi, asp or other languages too, but you must use a server side language, and php is the best/easiest/nonproprietary/etc from what I've heard and seen from using it.
You can't use javascript or just html because they are client side and can't do anything on the server, like, as you want, store data.

Twey
04-30-2006, 11:44 AM
The best way is to check their IP address.I disagree. The best way is to require a login, then check their account. However, if you don't want to do that, then yes, IP is the way to go. People can vote millions of times using proxies, though, you should be aware.

djr33
04-30-2006, 12:45 PM
Yeah... true. Logins are good.
But.. I mean, just for the average person, if it's just a button on a site without a login required.... IPs are the way to go.