Line Code Think Navigates Somepage Within Index Page Understand Use Question Mark Indexphp Q37105618

In this line of code, I think it navigates to ‘some_page’ withinthe ‘index’ page, but do not understand the use of the questionmark after ‘index.php’ and the equals sign after ‘some_page’. Couldsomeone please explain?

<td><a href=”index.php?some_page=<?php echo$some_variable;?>”Edit</td>


Answer


Dear Student ,

As per the requirement submitted above , kindly find the belowsolution.

Question:

Consider given line

<td><a href=”index.php?some_page=<?php echo$some_variable;?>”Edit</td>

Explanation:

  • This code is used to edit the record.This means when this linkis clicked there is need to edit the record.
  • So when link Edit is click need toidentified which records to edit.Suppose all records are displayedin tabular form row and column wise.Before each row there is editlink
    OR
    OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.