Hard to explain...

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

Post Reply
nmotion
Forum Commoner
Posts: 32
Joined: Wed Jan 22, 2003 6:53 am

Hard to explain...

Post by nmotion »

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
User avatar
daven
Forum Contributor
Posts: 332
Joined: Tue Dec 17, 2002 1:29 pm
Location: Gaithersburg, MD
Contact:

Post by daven »

$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
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Moved to PHP - Normal - please take care to post in the most appropriate forum.

Mac
Post Reply