This topic is locked
[SOLVED]

 Cant pass on $_SESSION["UserID"]

8/28/2017 4:28:12 AM
PHPRunner General questions
S
swanside author

I login and I am presented with my screen of Jobs. I click on a link generated from this code

if ($value=="DTD") $value = "<a target=_self href=\"LiveImports_add.php?editid1=".$data["Job_No"]."\">".$value."</a>";



And it opens the add page from my data

http://192.168.2.16/shark/LiveImports_add.php?editid1=1028320#1



But the Engineers name is blank where the default is the

$_SESSION["UserID"]



If from that page I click Back To List

http://192.168.2.16/shark/LiveImports_list.php?a=return

and then click add new it opens

http://192.168.2.16/shark/LiveImports_add.php#1

and the Engineers name are filled out.
I also noticed, the Date is set to

Now()

, when I access the page using

if ($value=="DTD") $value = "<a target=_self href=\"LiveImports_add.php?editid1=".$data["Job_No"]."\">".$value."</a>";

The date is blank, but again, if I go back to list and then click Add new the date is filled in?
Maybe it has something to do with the original link?

Any ideas please guys?

S
swanside author 8/29/2017

Half solved.

I got it tom pass the Job_No using

$_SESSION["Job_No"]


The date can be entered manually

S
swanside author 8/29/2017



Half solved.

I got it tom pass the Job_No using

$_SESSION["Job_No"]


The date can be entered manually


Nope I was too quick to reply. It didnt work. Will post pictures with a new topic