jermaindefoe Posted November 13, 2009 Share Posted November 13, 2009 Is it possible to create a form with a submit button, and associate the button to a method that i will write? i am basically trying to add and remove from a text info area, and when the user selects add or remove then the function will get called and do tis thing Quote Link to comment https://forums.phpfreaks.com/topic/181396-form-call-a-function/ Share on other sites More sharing options...
Garethp Posted November 13, 2009 Share Posted November 13, 2009 This is possible, but it belongs in the Javascript section Quote Link to comment https://forums.phpfreaks.com/topic/181396-form-call-a-function/#findComment-956874 Share on other sites More sharing options...
jermaindefoe Posted November 13, 2009 Author Share Posted November 13, 2009 This is possible, but it belongs in the Javascript section is that the only way Quote Link to comment https://forums.phpfreaks.com/topic/181396-form-call-a-function/#findComment-956880 Share on other sites More sharing options...
Garethp Posted November 13, 2009 Share Posted November 13, 2009 ... I'm thinking of a three letter word. Starts with a "Y". You have 3 guesses as to which word it is. For bonus points, tell me how this has anything at all to do with PHP? Quote Link to comment https://forums.phpfreaks.com/topic/181396-form-call-a-function/#findComment-956882 Share on other sites More sharing options...
PFMaBiSmAd Posted November 13, 2009 Share Posted November 13, 2009 If the function you are expecting to call is a php function, please be advised that browsers can only make HTTP/HTTPS requests for web pages, they have no way of 'calling' a php function directly. You must put php code on your web page to test the values that the browser submits and take appropriate action in the code. Quote Link to comment https://forums.phpfreaks.com/topic/181396-form-call-a-function/#findComment-956891 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.