Hi Guys,
Can someone plleeease help me with the following:
I am trying to setup defaults for individual users for sub_add_form only. In other words if userid = joe and he wishes to add the add_form contains his default Tel and Email. User george will obviously have different values. I tried:
if ($db_userid = "joe") {
$rec{'Tel'} = "375 6230";
$rec{'Fax'} = "375 6450";
$rec{'Email'} = "joe\@server.com";
}
if ($db_userid = "george") {
$rec{'Tel') = "899-0128";
$rec{'Fax'} = "899-0151";
$rec{'Email'} = "george\@server.com";
}
else {
&html_add_failure
}
at the start of sub_add_form, but I always end up with the last if statements block values. I am sure this has been a common question, but I cannot find anything on previous postings. Any help would be greatly appreciated.
Many thnaks in advance.
Greg
Can someone plleeease help me with the following:
I am trying to setup defaults for individual users for sub_add_form only. In other words if userid = joe and he wishes to add the add_form contains his default Tel and Email. User george will obviously have different values. I tried:
if ($db_userid = "joe") {
$rec{'Tel'} = "375 6230";
$rec{'Fax'} = "375 6450";
$rec{'Email'} = "joe\@server.com";
}
if ($db_userid = "george") {
$rec{'Tel') = "899-0128";
$rec{'Fax'} = "899-0151";
$rec{'Email'} = "george\@server.com";
}
else {
&html_add_failure
}
at the start of sub_add_form, but I always end up with the last if statements block values. I am sure this has been a common question, but I cannot find anything on previous postings. Any help would be greatly appreciated.
Many thnaks in advance.
Greg