How to excess the function

[font=lucida grande][size=13px] tell me how to access the function of php through html without using the form action

example…

[/size][/font]
[font=lucida grande][/size][size=13px][/color]
[php]<?PHP
function test()
{
echo “this is working”
}
?>[/php]

without using the form action tag direct Onclick function of button
how i can click it[/size][/font]

okay using your function example

[php]<?PHP
function test()
{
echo “this is working”
}
?>[/php]

to use the function you need to call it
[php]

<?php test(); ?>[/php]

you can pass variables to functions for example:

[php]<?php
function get_name($string){
echo “your name is $string”;
}
?>[/php]

then to use that function

[php]<?php get_name('joe'); ?>[/php]

would output your name is joe

Sponsor our Newsletter | Privacy Policy | Terms of Service