-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 13, 2002 12:23 PM
To: 'Rasmus Lerdorf'; 'vic'
Cc: [EMAIL PROTECTED]
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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to