Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

html button is calling a php function, how

Status
Not open for further replies.

michelleqw

Programmer
Joined
Jan 4, 2004
Messages
120
Location
DE
Dear PHP users,

We are trying with the help of a button, placed on a html form, to call a php function. Is this possible and if yes, is there someone who can give source?

Nice regards,

Michelle.
 
Michelle,

Your reference to a PHP function isn't quite clear (to me).
If the HTML button in question is a submit button, you'd want to make the form action accessable to a PHP script, for processing the data on the form. For example:

<form action="post" action="/path/to/php/script">
.
.
.
<input type="submit" value="submit" name="submit">
</form>

Is this what you had in mind, or were you referring to a standard or user-defined PHP function?

Regards,

Wishdiak
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top