Sending array to the form

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I can't seem to get the array in form to work, could use your help, thanks.

1st file name:  var_form.inc
---------------------------
<?
$forminfo = <<<EOD
<form method="POST" action="$PHP_SELF">
........
<input type="text" name="userEdit[FName]" value="$userEdit[FName]"
size="20">
<input type="text" name="userEdit[LName]" value="$userEdit[LName]"
size="20">
........
EOD;
?>

2nd file name: editForm.php
----------------------------
<?
.......
$userEdit[FName] = "John";
$userEdit[LName] = "Williams";
.......
include "var_form.inc";
echo $forminfo;
?>



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux