[mapserver-users] about PHP and HTML

P Kishor punk.kish at gmail.com
Thu May 15 19:03:13 EDT 2008


On 5/15/08, Francisco <fsalas at geocuba.co.cu> wrote:
>
>
>
>
> Hello,
>
> It is possible to execute one function PHP using a button object in one form
>
> for example
>
> function showmy()
>
> {
>
> echo "Hello"
>
> }
>
> ..
>
> <td>
>
> <input name="search" type="submit" id="search" value="Search"
> onClick="showmy()";
>
> </td>
>
> Salas
>

you are confusing server-side PHP with client-side JavaScript. You can
certainly execute a JavaScript function called showmy() on clicking an
HTML form button, but to execute a sever-side PHP script, you have to
send the web page back to the server.

Look up a basic tutorial on server-side vs. client-side scripting for
further help.


More information about the mapserver-users mailing list