[PHP] Form refresh problem
Hi Guys I'm having a bit of a problem with form submission. I'm creating an opinion poll, and the user's vote is submitted as a form back to the originating page. I'm using !isset to see if the form has been submitted and if so, updating the database and showing the current results My problem is that a user, having voted once, can keel clicking refresh in their browser and the form data keeps getting sent, incrementing the poll results each time Is there a way to kill form data once it;s been posted, or is there a better way of doing what I am trying to accomplish? Many thanks Lucas Young -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] opinion polling code
Hi I'm looking for some free opinion polling code using PHP and MySQL. I've checked a number of scripts and they haven't been up to scratch - I'm just after a simple poll that allows a user to vote once (selecting yes or no) and then for the remainder of their session they can only view the poll results (i.e. not vote again). Tricks like hitting refresh to resubmit the vote shouldnt work, and the results need to be shown as a bar graph - if anyone knows of a good script, please let me know. I'm trying Sympoll but it's not working properly and the guy's site is down (www.ralusp.net) thanks in advance Lucas Young -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] my cookies arent working!
Hi all I think most of the problems I am having with PHP and sample code not working seems to be because cookies arent being generated I'm using php.ini in it's default config Windows 2000 Pro IIS PHP 4.0.4pl1 PHP seems to be working fine otherwise... I did the installshield install then unzipped the zip package over the top to get the extra modules... How can I check that cookies are working and et up? I am seeing cookies in c:\documents and settings\\cookies on both the web machine and my workstation for normal www sites but not for any of my php sites... thanks in advance Luacs -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] my cookies arent working!
I'm actually using code from the web - sympoll from www.ralusp.net and authlib, both give me errors and neither seems to be writing cookies... I note in PHP the session save path is /tmp, where should this folder live? -Original Message- From: Markus Fischer [mailto:[EMAIL PROTECTED]] Sent: Sunday, 21 January 2001 4:44 p.m. To: Php-General Subject: Re: [PHP] my cookies arent working! On Sun, Jan 21, 2001 at 04:24:09PM +1300, Lucas Young wrote : > I think most of the problems I am having with PHP and sample code not > working seems to be because cookies arent being generated > I'm using php.ini in it's default config > Windows 2000 Pro IIS PHP 4.0.4pl1 > PHP seems to be working fine otherwise... I did the installshield install > then unzipped the zip package over the top to get the extra modules... > How can I check that cookies are working and et up? I am seeing cookies in > c:\documents and settings\\cookies on both the web machine and my > workstation for normal www sites but not for any of my php sites... How have you done cookie activation ? One easy way is to use session_start(); as it tries to set a cookie and fallsback to urlmodifieng if not possible. m. -- Markus Fischer, http://josefine.ben.tuwien.ac.at/~mfischer/ EMail: [EMAIL PROTECTED] PGP Public Key: http://josefine.ben.tuwien.ac.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] my cookies arent working!
Hmmm, ok, so what else could I be missing that is stopping my cookies working? -Original Message- From: Markus Fischer [mailto:[EMAIL PROTECTED]] Sent: Sunday, 21 January 2001 10:31 p.m. To: Php-General Subject: Re: [PHP] my cookies arent working! On Sun, Jan 21, 2001 at 05:45:44PM +1300, Lucas Young wrote : > I'm actually using code from the web - sympoll from www.ralusp.net and > authlib, both give me errors and neither seems to be writing cookies... I > note in PHP the session save path is /tmp, where should this folder live? Where you think its best secure. Or no files at all and sessions saved to database (with session_handlers). But, what about cookies ? Session file layout has nothing to do make cookies work or not. m. -- Markus Fischer, http://josefine.ben.tuwien.ac.at/~mfischer/ EMail: [EMAIL PROTECTED] PGP Public Key: http://josefine.ben.tuwien.ac.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]