Hello everybody,
Looking at the code below, how do I go about adding the HREF selection ($row['ci_taskid']) to a session variable?
index.php
while($row = mysqli_fetch_assoc($ProjectListResults))
{ echo '<tr>';
echo "<td> <a href='projectassessment.php?taskid=" .$row['ci_taskid'] . " ' > " . $row['ci_taskid'] . "</a></td>";
echo '<td>' . $row['ci_firstname'] . ' '.$row['ci_lastname']. '</td>';
echo '<td>' . $row['ci_projectid']. '</td>';
echo '<td>' . $row['ci_sde'] . '</td>';
echo '<td>' . $row['ci_status']. '</td>';
echo '<td>' . $row['ci_title']. '</td>';
echo '</tr>';
}
current problem:
I have the following code in the receiving page but the receiving page is a data entry page so the page will be used by the same user multiple times but the session variable is lost when a user tries to add a new record. I'm assuming its lost when the same page is returned without any values signed to $_GET and in turn a blank value is returned or passed to the session variable.
projectassessment.php
<?php
session_start();
echo $SESSION['taskid'] = $GET['taskid'];
...
?>
any help you can give me would be greatly appreciated.
thanks