k thnx boogyman! (who knew the boogyman could be so helpful... because usually ure afraid of the boogyman... hiding in the closet or under the bed, or inside the peice of pie...) lol...
I'll try it out! thanks!
k thnx boogyman! (who knew the boogyman could be so helpful... because usually ure afraid of the boogyman... hiding in the closet or under the bed, or inside the peice of pie...) lol...
I'll try it out! thanks!
Last edited by Rockonmetal; 09-03-2007 at 08:08 PM.
Ok I finally got to test out the code... I think I understand it but its not working...
I went simple because I usually go simple then start to expand... I have no idea how to do this...PHP Code:<html>
<body>
<form action="report.php" method="post">
<input type="submit">
</form>
<?php
function writeIt(){
echo "Hi";
}
//Function which says write this..
if( !$errors ) {
return writeIt();
}
//If button is pressed perform function named writeIt
else {
echo "Data could not be stored...";
}
//Error message above...
}
?>
</body>
</html>
Thanks for helping...
there is confusion inside this code.. you are trying to do the form and the write... the function writeIt() as you have it here would ened to be in the "report.php"
from there.. I made it so that the errors were put into an array, and onchecks to see if there is anything in that array. so you would need to change that line to fit your script personally. however you are handling the errors.if( !$errors )
K... I'll try this... thanks
Bookmarks