Hi:

I have a php script that runing to check some form input. after I got some error input found, the script(php) should prompt a error message just like the java script alert. this php script should not produce any html file.

How can I do that ?

thanks a lot !!!

    If I understand correctly, you want to use PHP script on the client-side similiar to javascript as below?

    <script>
    function DoFormValidate()
    {
    }
    </script>

    <body>
    <form onsubmit="DoFormValidate();">
    ...
    </form>
    <body>

    The answer is likely to be negative, since PHP is a server side scripting language. However, you may use PHP to write this javascript as a part of your HTML response.

    Hope the above is clear

    visit me at http://www.bringitlive.com

      Write a Reply...