Hiya,

Can i call a function from the action line of a form?

ie:
<?
function myfunction(){
if($submit){
$result = mysql_query("INSERT INTO app 
(name,company,address,suburb,state,post,areacode,phone,faxareacode,fax,email,secret) 
VALUES 
('$name','$company','$address','$suburb','$state','$post','$areacode','$phone','$faxareacode','$fax','$email','$secret')");

}
}
?>
<form action="<? myfunction(); ?>

i would like to do it this way because i have a form on another page with passed the 
vaules thru to this one .. and i don't want it looking at the if($submit)
Any help would be great

Peter Houchin
Sun Rentals
[EMAIL PROTECTED]

Reply via email to