oo it works![]()

oo it works![]()
:S have we gone offtopic or something?
Erm...
1) $HTTP_GET_VARS is depreceated. Use $_GET instead.
2) You don't need to use a switch statement for something that simple. Just display the form, making sure it's been told to go to the same script when it's been submitted, and then at the top of your PHP script, check whether it's been submitted like so:
That'll check whether the submit form variable (buttons have POST input too) is there. If it is, you can add the code to process underneath.PHP Code:if(isset($_POST['submit)) {
3) Validate your data. I tried sending something through the demo, and I only entered an address. Guess what? It still sent.
Do that for all the form fields.PHP Code:if(empty($_POST['name'])) {
echo 'You did not enter a name!';
}
else {
$name = $_POST['name'];
}
yeah i know about that, im doin that in next version
first version was basicaly a 5 min job tbh
my sig ran away,
Want to hide these adverts? Register an account for free!