PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hi everyone, I am needing to finalise a bit of code and havent done this before and wondering how I would go about it. I have checked google but results coming up dont answer the question, so thought I would ask real people...
Thanks in advance...
Now onto the question.
I have a form where a user inputs a numeric value (i.e. 1,2,3 etc) and upon submission I want it to generate an insert a string into the database for each of the values entered (i.e. enter 2 and the result will INSERT jkdfij00 once and 2309029jjj for the second entry).
I hope I am making myself clear enough.
Thanks everyone!
Last edited by reverend_ink on Fri Mar 25, 2005 1:21 pm, edited 1 time in total.
//Get the passed user value
$loop = $_POST['user_number'];
//Loop the specified number of times
for ($ctr = 0; $ctr < $loop; $ctr++) {
do something
do something else
}