Fill a field on add page using urlencode

Tips submitted by PHPMaker users

Fill a field on add page using urlencode

Postby Laim71 » Sat Jan 13, 2018 6:46 pm

Hi,
I’ve a list page from which I want to fill a field on another form by clicking a list option link.
Below the 02 lines of code I put In ListOptions_Rendered() of the current list page.
The field to fil is “NDI”
$ndi=urlencode($this->NDI->ViewValue = $this->NDI->CurrentValue);
$this->ListOptions->Items["MAJ"]->Body = "<a href='t_modetatdiadd.php?NDI=".$ndi."'><b>Mettre à jour l’état</b></a>";

THANKS for your help
Laim71
 
Posts: 44
Joined: Sun May 28, 2017 8:31 am

Return to User Submitted Tips (PHPMaker)