Could anyone provide a simple example how to ajaxify a form with dojo and retrieve a result from a php script?
like
<form action="login.php" method="post">
<input type="text" name="user">
<input type="password" name="password">
<input type="button" value="login">
</form>
+
<?PHP
if($_POST["user"] == "test" && $_POST["password"] == "test") {
echo "youre logged in successfully [REDIRECT HERE]";
}
else {
echo "you failed epic";
}
?>
+
dojo.xhrpost or what?!
xhrPOST – for example