ok my contact form script is in a separate file as my contact.php page. I made my contact form so that it could validate with JavaScript and PHP if JavaScript wasn't available. Well the script echo's a statement based on the validation but it creates a new page.... i want it to simply print to a targetDIV!
How to Echo to a specific DIV?
Started by ductiletoaster, Mar 23 2010 09:44 PM
1 reply to this topic
#1
Posted 23 March 2010 - 09:44 PM
|
|
|
#2
Posted 24 March 2010 - 12:31 AM
I think the way to do it is to use the DOM class built into PHP. It isn't as simple as using innerHTML in JavaScript, but it will work if you can work out how to put your code into it. Here is an interesting article which might help you.
PHP DOM Class
PHP DOM Class


Sign In
Create Account


Back to top









