Jump to content

Question Mark Symbol


jimfog

Recommended Posts

Look at the following code:

echo '<a href="'.$_SERVER["PHP_SELF"]. "?month= ". $prev_month ." &year= " .$prev_year. '">

This code sends data through the URL and a REQUEST variable is standing by to process them.So far nothing strange. I do not understand though where it is used the ? before the month word? What is its usefulness? I do not think here we are dealing with the ternary operator, unless there would be a colon somewhere.

Link to comment
Share on other sites

Why do we use it as part of the URL? Can it be omitted? I did but i get the usual page "object not found".

Link to comment
Share on other sites

Now i got it. Thanks

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...