I'm working as a Web Developer just beginner in this field. Can you help me on how to code a javascript wherein a pop-up window will appear upon submitting the form.
And how do I trap the email adds, and some embed codes from being inputed in the input box using javascript?
I'm using PHP as source of my code but I want to include a scripting code on my code as well. And by the way, I'm using MYSQL Database.
>> What you want to do is post the form you your PHP page (you should have attributes such as method="post" and action="mypage.php" in your form tag), and take care of handling the fields in your PHP code
>> In the form, the submit button should be of type "button", and onclick you can call a function "submitFrom()".
>> The submitFrom function would look something like this:
function submitFrom() {
alert('my text');
document.getElementById('myForm').submit();
}
}
Bookmarks