tcorbeil Posted April 5, 2007 Share Posted April 5, 2007 Is there a way to do this: <form id="form1" name="form1" method="post" action="<? !validate(); ?>"> so that my function validate is not considered an outside link? ..i have this function defined later in the program.. Thanks. T. Link to comment https://forums.phpfreaks.com/topic/45712-another-question/ Share on other sites More sharing options...
hitman6003 Posted April 5, 2007 Share Posted April 5, 2007 You can not call a php function from an html form. The action attribute should be equal to the name of the page that the form is submitted to. php is server side. Html is client side. If you want to validate a form client side (using the onsubmit attribute of the form) use javascript. Link to comment https://forums.phpfreaks.com/topic/45712-another-question/#findComment-222060 Share on other sites More sharing options...
jitesh Posted April 5, 2007 Share Posted April 5, 2007 Explain a functionality you want to develope Link to comment https://forums.phpfreaks.com/topic/45712-another-question/#findComment-222062 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.