I'm building a site that uses lots of forms, thankfully they're all quite simple requests for email address/comments etc, at the moment I am getting the variables from the post array on each individual page like this:
<?php $name=$_POST['Name']; $business=$_POST['Business']; $email=$_POST['Email']; ?>
which works fine, but it isnt very efficient, especially if theres lots of variables. I want to create a generic form handler that i can call as an include, so use the POST array more like;
<?php $userinput=$_POST ; mycheckInputfunction($userinput); echo "Thanks for your enquiry".$userinput['0'] ; ?>
Any help would be greatly appreciated
Help

















