Forum Moderators: coopster
my form:
$enquiry = tep_db_prepare_input($HTTP_POST_VARS['enquiry']);
[prepares it]
<?php echo tep_draw_textarea_field('enquiry', 'soft', 50, 15, tep_sanitize_string($_POST['enquiry']), '', false);?>
[builds the textarea that people will be typing into]
i would like to allow only:
letters, punctuation, spaces, _, $ and accents
i've done several web searches and on php.net and i cannot figure it out.
i would like the error to be posted on the current page (not redirected to another page) that informs the visitor what the problem was... so they don't have to retype everything.
any suggestions?