Re: [PHP] Accessing variables from a form

2001-02-21 Thread Chris Lee
ok here we are, your code is *almost* correct, but even syntaxialy correct doesnt mean it should be used :) use arrays, its a tone easier. to fix your code change $name =& $field; to $name = $$field; now to make the code, a ton easier to use, use arrays. "; ... ?> $val) { echo $val;

Re: [PHP] Accessing variables from a form

2001-02-21 Thread Pavel Jartsev
Don wrote: > > Hi, > > I'm in a quandary here. I have a form which contains sever tables each > containing similar fields. The number of tables are dynamic based on > vales I retrieve from a database. Each table has the following fields: > > ... > Maybe this approach is simpler. If you cr

[PHP] Accessing variables from a form

2001-02-21 Thread Don
Hi, I'm in a quandary here. I have a form which contains sever tables each containing similar fields. The number of tables are dynamic based on vales I retrieve from a database. Each table has the following fields: $name $phone $fax In order to differentiate the filed names in my form, I cre