RE: [PHP] count link clicks
| From: | Dave at Sinewaves.net | Date: | Tue, 13 Aug 2002 19:19:41 +0000 |
| Subject: | RE: [PHP] count link clicks | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-112428@lists.php.net to get a copy of this message | ||
-----Original Message-----
From: victor@argilent.com [mailto:victor@argilent.com]
Sent: Tuesday, August 13, 2002 12:23 PM
To: 'Rasmus Lerdorf'; 'vic'
Cc: php-general@lists.php.net
Subject: RE: [PHP] count link clicks
I think I'm on the right track with:
<?php
//////////////////////////////
// CHANGE THIS:
//
// $i = $value++;
//
///////////////////////////////
// TO THIS:
$value = $add_form + 1;
// Show first link
echo '<a href="'.$PHP_SELF.'?add_form='.$value.'">
New paragraph
</a>
</font>';
// Isert form html into $data_fields variable
$data_fields = '<html html blah blah>
<a href="'.$PHP_SELF.'?add_form='.$value.'">
New paragraph
</a>';
////////////////////////////////////
// CHANGE THIS:
//
// while ($i = $value) {
// echo $data_fields;
// }
//
////////////////////////////////////
// TO THIS:
for($i=0; $i<$add_form; $i++)
{
echo $data_fields;
}
?>
The only problem is that it runs for an infinite number of times, I want
it to run for as many times as the http://domain.com?add_form=1 (IE: 1
in this case) defines.
- Vic
______________________________________________________________________
Post your ad for free now! http://personals.yahoo.ca
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php