ok so im creating a contact form and validation page... i have it so that it can validate using both javascript and php. Now i want to be able to have it still validate even when javascript is disabled. my question is.... is there a way to echo, or print info to a specific div using php.
Something like that ?Code:<?php
function validateForm(){
return $something;
}
$str = validateForm();
// find a div where you want to print it
echo "<div id='someDiv'>".$str."</div>";
?>
now that just echo's a div i wanted to know if u can send data to be displayed with in an already existing div
you can always change the content of an div with a javascript, and load the new content from the server with ajax calls.
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks