Reply to Re: Best approach to run queries only when user chooses

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация