Hi,
im working on a form validation method, i have gotten so much done today in the way of organising and starting off how im gonna do my form.
i came to a conclusion to submit form to PHP_SELF and if process was sent then it starts processing the form if thigs are good it Location header's to the confirmed page. (there is a lot of kerfuffle over HTTP spec relating to this so if theres an easier way, and more by the book way could you please tell me)
Any way, i got to preg_match and i just dont understand!
if(preg_match(&#$&%#%(&(&%&#&%$&(), felid 1)
{WRONG
} esle{
put into db
}
i dont get the &(%&(&%%&()* part, what does it all mean,
i need to validate:
email addresses
password
and allow every thing into a username - but stopping injecting
and stopping injecting on all
sorry this is a LOT of info but
thanks in advance
PS, should the errors be in one big if statement or put into an array and at the end if(array_empty( ADD INFO TO D😎
thanks