Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What does a question mark (?) stands for in ancho tag ? 1

Status
Not open for further replies.

lupidol

Programmer
Apr 23, 2008
125
IL
Hi everyone,
I bumped into code regarding anchore tag:
<a href="index.php?del_task=<?php echo $row['id'] ?>">x</a>
What does the "?" stand for?
Thanks
 
The question mark indicates the beginning of the list of parameters, name - value pairs, being passed to the linked page. It does not stand for anything, its just an indicator, so that the server getting the request knows there's parameters being sent to the page.

Then the page can make use of those values being sent.

In your example index.php will be receiving a parameter or variable named "del_task" that has a value of whatever $row{'id'} is when that code is being parsed by the PHP interpreter.



----------------------------------
Phil AKA Vacunita
----------------------------------
OS-ception: Running Linux on a Virtual Machine in Windows which itself is running in a Virtual Machine on Mac OSx.

Web & Tech
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top