For some reason I can’t get this to work. It pulls the name and team but not the other data.
Here is my _POST data:
$id=$_GET[‘name’];
$tm=$_GET[‘team’];
$hr=$_POST[‘hours’];
$bl = $_POST[‘block’];
$sp = $_POST[‘spec_area’];
$wx = $_POST[‘wx’];
Here is my URL:
<a href="ola_admin.php? name='.$data["name"].'&web='.$data["webex"].'&team='.$data['team'] .'&hr='.$data['hours'] .'">update</a></td>
And here is where I am trying to put it (testing only of course):
<?php
echo $tm;
echo $wx;
echo $hours;
echo $hr;
?>
So when I click the link obviously I want it to post the data… What am I doing wrong?
If you are sending the data via the URL in the way you are, it can only be retrieved with
$_GET. The$_POSTarray is for data submitted in a<form>tag.http://www.tutorialspoint.com/php/php_get_post.htm