Forum Moderators: coopster
Can someone point me in the right direction either for the logic or maybe the function, here's what Im trying to do.
I would like a script to run a particular function "X" times based on what a user inputs via a form. So,
(excuse the coding, Im just trying to show what Id like it to do, I will fix it up later)
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
$numberoftimes=$_post["times"]
echo "first name";
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
How can I get it to print the echo line the $numberoftimes?
Any direction is appreciated.
thanks!
for loop. You are referring to what is called a Control Structure [php.net].