Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 12-20-2005, 09:08 AM   #1
JSWENSON
So Fucking Banned
 
Industry Role:
Join Date: Aug 2004
Posts: 3,153
Need Some PHP help from the gurus

I need a php code sniplet that will increment a variable everytime a submit button is clicked. Another words it needs to count +1 everytime the submit is clicked. Thanks in advance.
JSWENSON is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-20-2005, 09:09 AM   #2
dissipate
The Dirty Frenchman
 
dissipate's Avatar
 
Industry Role:
Join Date: Nov 2005
Location: Lost Angeles
Posts: 8,904
is this per user? or is this an overall count of the submit button
dissipate is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-20-2005, 09:12 AM   #3
Screaming
I can change this!!!!!
 
Join Date: Feb 2004
Posts: 18,972
how much you offering for this?
__________________
Screaming is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-20-2005, 09:18 AM   #4
JSWENSON
So Fucking Banned
 
Industry Role:
Join Date: Aug 2004
Posts: 3,153
per user

Quote:
Originally Posted by dissipate
is this per user? or is this an overall count of the submit button
It would need to be per user. Thanks
JSWENSON is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-20-2005, 09:19 AM   #5
dissipate
The Dirty Frenchman
 
dissipate's Avatar
 
Industry Role:
Join Date: Nov 2005
Location: Lost Angeles
Posts: 8,904
you can use a mysql database to track thier IP, resetting it each day
dissipate is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-20-2005, 09:43 AM   #6
darksoul
Confirmed User
 
darksoul's Avatar
 
Join Date: Apr 2002
Location: /root/
Posts: 4,997
Code:
<?php
session_start();
$_SESSION['clicks']++;

echo "You clicked $_SESSION['clicks'] times dude!";
?>
__________________
1337 5y54|)m1n: 157717888
BM-2cUBw4B2fgiYAfjkE7JvWaJMiUXD96n9tN
Cambooth
darksoul is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-20-2005, 09:45 AM   #7
JSWENSON
So Fucking Banned
 
Industry Role:
Join Date: Aug 2004
Posts: 3,153
Thanks for the help

Quote:
Originally Posted by dissipate
you can use a mysql database to track thier IP, resetting it each day
Your suggestion gave me an idea that worked fine, thanks used the following:

if ($submit) {
$_SESSION[$accountselnum] = $_SESSION[$accountselnum] + 1;
}else {
$_SESSION[$accountselnum] = 0;
}
JSWENSON is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-20-2005, 10:08 AM   #8
SMG
Confirmed User
 
Join Date: Aug 2003
Posts: 1,798
Quote:
Originally Posted by JSWENSON
Your suggestion gave me an idea that worked fine, thanks used the following:

if ($submit) {
$_SESSION[$accountselnum] = $_SESSION[$accountselnum] + 1;
}else {
$_SESSION[$accountselnum] = 0;
}
just remember that if that guy clicks, then goes to the page without clicking, that will reset his click count ... dunno if that matters to you but figured I'd say it anyway :P
__________________
TGP Webmasters: sign up for the top 100 tgp list!
Submit galleries
If you add me to icq (title) make sure to mention GFY or I'll think you're a bot and deny you.
SMG is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.