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!
Moderator: General Moderators
nmotion
Forum Commoner
Posts: 32 Joined: Wed Jan 22, 2003 6:53 am
Post
by nmotion » Sat Jul 19, 2003 7:38 am
It's kind of hard to explain so here is what I want to do in ASP code. How do you do this in PHP?
Code: Select all
counter = 1
IF Request.form("del" & counter & "") = 1 THEN
END IF
counter = counter+1
daven
Forum Contributor
Posts: 332 Joined: Tue Dec 17, 2002 1:29 pm
Location: Gaithersburg, MD
Contact:
Post
by daven » Sat Jul 19, 2003 4:42 pm
$counter=1;
if($_REQUEST['del']){
$counter++;
}
// $_REQUEST['del'] is either a post or get variable from a form. I do not know why you have the '& " "', o I left it out of the code snippet
twigletmac
Her Royal Site Adminness
Posts: 5371 Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK
Post
by twigletmac » Mon Jul 21, 2003 3:17 am
Moved to PHP - Normal - please take care to post in the most appropriate forum.
Mac