RE: [PHP] count link clicks
| From: | victor at argilent dot com | Date: | Tue, 13 Aug 2002 19:22:38 +0000 |
| Subject: | RE: [PHP] count link clicks | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-112415@lists.php.net to get a copy of this message | ||
I think I'm on the right track with:
<?php
$i = $value++;
// 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>';
while ($i = $value) {
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