calling functions

From: Date: Tue, 27 Feb 2001 02:33:48 +0000
Subject: calling functions
Groups: php.general 
Request: Send a blank email to php-general+get-41781@lists.php.net to get a copy of this message
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 peterh@sunrentals.com.au

« previous php.general (#41781) next »