|
Posted by Mike Willbanks on 10/25/05 02:17
>>>After a user clicks on the SUBMIT button to a form, you look at
>>>what's in $_GET and $_POST to decide whether or not to call the
>>>function, like the name of the submit button or whether the fields
>>>in the form were filled in.
>>
>>I dont have any fields that need submitting.
>
>
> The submit button itself can have a name.
>
>
>>Could I put the function in the
>>form
>
>
> NO, you cannot put functions in HTML. Well, you can put the text
> of the function, but then it won't be a function.
>
>
>>and if user clicks submit it calls the function if I put the functions
>>name in the forms 'action'?
>
>
> No, you cannot put function names in HTML and expect it to do any good.
While all of this is true what he could do is use ajax to call the
function and pass the parameters that way :)
--
Mike Willbanks
Zend Certified Engineer
http://www.digitalstruct.com
Navigation:
[Reply to this message]
|