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. Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
jitesh Posted April 5, 2007 Share Posted April 5, 2007 Explain a functionality you want to develope Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.