Results 1 to 5 of 5
I can't figure this out... Forum: Website Scripts ForumReplies: 5
CGI form processor configured? and doesnt work. HELP PLEASE!!! Forum: CGI Perl ForumReplies: 1
Can't figure out these Validation codes!! Forum: CSS ForumReplies: 4
Ie5 and Ie6 ... 100% with doesnt work! Forum: HTML ForumReplies: 6
11-11-2003, 03:40 PM #1
Cant figure out why my poll doesnt work? ^_^
Hey all. I just started working with PHP not too long ago...and im building a site. The problem im having is that the poll does work...but nothing is sent to the database, and when thats over with, the poll actually disappears. What i want it to do is have the percentage of the votes for yes and no...can you help out with this? Ill leave the file dealing with the poll here. Any help would be great.
11-11-2003, 06:14 PM #2Originally Posted by Illustrion
11-11-2003, 10:33 PM #3
Well...that isnt the problem. It would have given me an error, so i know its not it. I test it out, but when i get into phpMyAdmin to check if the vote registered. it has 1 registry and both fields "yes" and "no" have 0 for an entry. The query i used was this below...which i got the dump out of phpMyAdmin.
CREATE TABLE poll_results (
yes tinyint(4) DEFAULT '0' NOT NULL,
no tinyint(4) DEFAULT '0',
PRIMARY KEY (yes),
UNIQUE no (no)
I know i should have posted this earlier...but yeah...i didnt, so here it is.
11-11-2003, 10:56 PM #4
If your global variables are off, you may need to use $_POST for your insert query to actually recieve the values from the form input.
Try this right after the opening tag of your php input script.
(I didn't look at the attached file you included, seems its a file my XP doesn't recognize)
11-11-2003, 11:17 PM #5
Oh, i just used it as an include...you can open it in any text program. I wrote that one in coffeecup html editor.