0

Hi everyone.

I've been using dbmasters formm@iler.php for the past couple of years without any problems. No great credit on my part as I'm a complete dummo when it comes to PHP. In this case the script just worked out of the box so to speak.

Recently a number of enquiries have started missing out a field. So modified the PHP so the missing field became a required field. Now a number of folks are just putting an 'x' in the field rather than either the required 3 or 4 numbers.

Have heard you can modify this script or rely upon a validation.js file but everything just goes over my head.

This is part of the PHP script

// General Variables


        $check_referrer="no";
        $referring_domains="";

    // Default Error and Success Page Variables
        $error_page_title="Unable to submit - Incomplete Details";
        $error_page_text="Please use your browser's back button to return to the Warranties 2000 web filing system and complete the required details.";
        $thanks_page_title="Your Proposal Has Been Forwarded To WARRANTIES2000 - Thank you";
        $thanks_page_text="Please use the back button on your browser";

    // options to use if hidden field "config" has a value of 0
    // recipient info
        $charset[0]="iso-8859-1";
        $tomail[0]="";
        $cc_tomail[0]="*@gmail.com";
        $bcc_tomail[0]="";
    // Mail contents config
        $subject[0]="";
        $reply_to_field[0]="";
        $reply_to_name[0]="";
        $required_fields[0]="EngineSize";
        $required_email_fields[0]="";
        $attachment_fields[0]="";
        $return_ip[0]="";
        $mail_intro[0]="";
        $mail_fields[0]="Title,FirstName,Surname,TelephoneNumber,CellNumber,VehicleMake,VehicleModel,EngineSize";
        $mail_type[0]="text";
        $mail_priority[0]="1";
    // Send back to sender config
        $send_copy[0]="";
        $send_copy_format[0]="vert_table";
        $send_copy_fields[0]="";
        $send_copy_attachment_fields[0]="";
        $copy_subject[0]="";
        $copy_intro[0]="";
        $copy_from_email[0]="";
        $copy_from_name[0]="";
        $copy_tomail_field[0]="";
    // Result options
        $header[0]="";
        $footer[0]="";
        $error_page[0]="";
        $thanks_page[0]="http://*.com";

So basically I'm stuck. Have tried reading up on stuff and frankly it just gets lost - all over my head stuff. Any help would be appreciated.

Thanks for looking

3
Contributors
2
Replies
4
Views
5 Years
Discussion Span
Last Post by Bachu
0

@mart4494

Have heard you can modify this script or rely upon a validation.js file but everything just goes over my head.

Do you get any error messages or does nothing happen?

If there's no error than it's more Javascript issue rather than PHP issue.

The code you provided doesn't make any sense? It's like you put a part of the code so it's hard to understand it plus it's incomplete.

Since you are using JQuery validate.js

Have you read this:

http://rickharrison.github.com/validate.js/

to find some clues?

I think it's best to post this in Javascript section rather than PHP section.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.