title: Passing a value by anchor tag through PHP
body: <p>I do not understand how to use anchor tag to pass a value. I have a form which takes a few values and submits to my mysql database. I am able to view the table. Each row has columns edit and delete. When I click edit I want to pass the primary key(job name) of that row to my edit page and similarly for delete. I am able to see the value on the URL,but I am not able to get the value on the edit page. I do not understand what is the use of ? in anchor tag.</p>
  
  <p><strong>ViewAllJobs.php</strong></p>
  
  <pre><code>&lt;?php
  include 'jobDB.php';
  $query="Select * from Jobs";
  $result=mysqli_query($con,$query);
  echo'
  &lt;html&gt;
  &lt;center&gt;&lt;h1&gt;View all Jobs&lt;/h1&gt;&lt;/center&gt;
  &lt;body bgcolor="#E6E6FA"&gt;
  &lt;center&gt;&lt;form method=POST action=edit.php &gt;
  &lt;table border="1" style="border-collapse:collapse; border-color:Black; border-style:solid; border-width:1pt"&gt;
  &lt;tr&gt;
  &lt;th&gt;Job Name&lt;/th&gt;
  &lt;th&gt;Job State&lt;/th&gt;
  &lt;th&gt;Schedule days&lt;/th&gt;
  &lt;th&gt;URL&lt;/th&gt;
  &lt;th&gt;Filename&lt;/th&gt;
  &lt;th&gt;To&lt;/th&gt;
  &lt;th&gt;CC&lt;/th&gt;
  &lt;th&gt;Reply To&lt;/th&gt;
  &lt;th&gt;From&lt;/th&gt;
  &lt;th&gt;EmailSubject&lt;/th&gt;
  &lt;th&gt;Email Content&lt;/th&gt;
  &lt;th&gt;Edit&lt;/th&gt;
  &lt;th&gt;Delete&lt;/th&gt;
  &lt;/tr&gt;';
  
  while($row=mysqli_fetch_array($result)){
      echo'&lt;tr&gt;
      &lt;td&gt;'.$row["jobName"].' &lt;/td&gt;
      &lt;td&gt;'.$row["jobState"].'    &lt;/td&gt;
      &lt;td&gt;'.$row["jobSchedule"].' &lt;/td&gt;
      &lt;td&gt;'.$row["jobURL"].'  &lt;/td&gt;
      &lt;td&gt;'.$row["jobFilename"].' &lt;/td&gt;
      &lt;td&gt;'.$row["jobToList"].'   &lt;/td&gt;
      &lt;td&gt;'.$row["jobCCList"].'   &lt;/td&gt;
      &lt;td&gt;'.$row["jobReplyTo"].'  &lt;/td&gt;
      &lt;td&gt;'.$row["jobFrom"].' &lt;/td&gt;
      &lt;td&gt;'.$row["jobSubject"].'  &lt;/td&gt;
      &lt;td&gt;'.$row["jobEmailContent"].' &lt;/td&gt;
      &lt;td&gt;&lt;a href="edit.php?jobName='.$row["jobName"].'"&gt;Edit&lt;/a&gt;&lt;/td&gt;
      &lt;td&gt;&lt;a href="delete.php?jobName='.$row["jobName"].'"&gt;Delete&lt;/a&gt;&lt;/td&gt;
      &lt;/tr&gt;
      ';
  }
  
  echo'&lt;/table&gt;
  &lt;/form&gt;
  &lt;center&gt;&lt;a href="welcome.php"&gt;Click to return to Home Page&lt;/a&gt;&lt;/center&gt;
  &lt;/center&gt;
  &lt;/body&gt;
  
  &lt;/html&gt;
  
  
  
  ';
  ?&gt;
  </code></pre>
  
  <p><strong>edit.php</strong></p>
  
  <pre><code>&lt;?php
  include 'jobDB.php';
  $jobName=isset($_REQUEST['jobName']);
  if($jobName){
      echo"jobname is set";
  }
  else{
      echo"job name is not set";
  }
  echo"&lt;br&gt;jobname is".$jobName;
  $query="select* from Jobs where jobName=".$jobName;
  $result=mysqli_query($con,$query);
  if($result){
      echo"&lt;br&gt;query succesful";
  
  }
  $fetch=$row=mysqli_fetch_row($result);
  if($fetch){
      echo"&lt;br&gt;result set fetched";
  }
  else{
          echo"&lt;br&gt;result set not fetched";
      }
  ?&gt;
  </code></pre>
  
  <p>In edit.php <code>$jobName=isset($_REQUEST['jobname'])</code> gives <code>$jobName=1</code> when it is supposed to have the value <code>job1</code>, but there does not exist a variable <code>jobname</code>, when I give <code>$jobName=isset($_REQUEST['jobName'])</code>, nothing works. What is the name I should give in <code>$_REQUEST()</code>. Kindly help.</p>