I modified a page that currently is validating a form entry making sure it is filled in before submitting, works fine HOWEVER I change the action from the following:
to:PHP Code:<?php echo zen_draw_form('pagename', zen_href_link(FILENAME_PAGENAME, 'action=send', 'SSL')); ?>
which kills the validation and lets the user submit the form with or without filling in the entry.PHP Code:<form method="POST" action="/test-page.php" target="popup">
I narrowed the code that controls this down to the following in the pages header file:
Anyone know how to to rewrite the code to make it work again?PHP Code:$error = false;
if (isset($_GET['action']) && ($_GET['action'] == 'send')) {
$fieldname1 = zen_db_prepare_input($_POST['fieldname1']);


Reply With Quote

