Put a button in the header

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
josecnp1
User
Posts: 73

Put a button in the header

Post by josecnp1 »

can insert a button in page Data Rendering event
for example, this code:
<form action="asegura.php">Pulsar para <input type="submit" name="insert" value="Copia Seguridad" onclick="backup_tables()"></form>
I tried this but not working:

// Page Data Rendering event
function Page_DataRendering(&$header) {
$header = "<form action="asegura.php">Pulsar para <input type="submit" name="insert" value="Copia Seguridad" onclick="backup_tables()"></form>";
}


scs
User
Posts: 694

Post by scs »

Please check List Page -> Page_Load with @$this->ExportOptions->Add("your_ref").


mobhar
User
Posts: 11731

Post by mobhar »

You cannot enclose the string that contains double quotes character with the double characters, too.

Change this:
$header = "<form action="asegura.php">Pulsar para <input type="submit" name="insert" value="Copia Seguridad" onclick="backup_tables()"></form>";

become:
$header = '<form action="asegura.php">Pulsar para <input type="submit" name="insert" value="Copia Seguridad" onclick="backup_tables()"></form>';


Post Reply