faqts : Computers : Programming : Languages : PHP : kms : General

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

4 of 5 people (80%) answered Yes
Recently 1 of 2 people (50%) answered Yes

Entry

How can I call a variable from another script and use it as the value for a new hidden form name?

Nov 28th, 2000 23:57
Pavel Prishivalko, Nicholas theuriet,


For PHP 4:
<? // OtherScript.php
session_start();
$var = "blah";
session_register("var");
?>
<? // Script.php
session_start();
echo "<input type=hidden value=$var name=var_name>";
?>
Good Luck :)