+ Reply to Thread
Results 1 to 5 of 5

Thread: Contact Form snippet question

  1. #1
    Join Date
    Mar 2008
    Location
    Springfield OH
    Posts
    29

    Default Contact Form snippet question

    Good morning,

    On Norma's RealEstateForWomenByWomen.com quick contact form (Ask Norma), it currently has the last name set as a required field, and she would like me to make that field optional. In looking at the snippet code, which line should be changed to optional from required?

    Thanks so much!

    Lisa Morgan

  2. #2
    Join Date
    May 2008
    Posts
    1,170

    Default Re: Contact Form snippet question

    Lisa,

    Change this line:
    $last_name_test = !empty($last_name);

    to this:
    $last_name_test = true;

    That should work.
    Vera

  3. #3
    Join Date
    Mar 2008
    Location
    Springfield OH
    Posts
    29

    Default Re: Contact Form snippet question

    thank for everything Vera!

  4. #4
    Join Date
    Mar 2008
    Location
    Springfield OH
    Posts
    29

    Default Re: Contact Form snippet question

    Vera, just to make sure I'm looking at the correct line, would that be the line that says:

    $last_name_test = !empty($last_name) && $last_name !='Last Name *';
    changed to

    $last_name_test = true($last_name) && $last_name !='Last Name ';
    ?

  5. #5
    Join Date
    May 2008
    Posts
    1,170

    Default Re: Contact Form snippet question

    Leave out the ($last_name) && $last_name !='Last Name'; part.

    The line should just read:
    $last_name_test = true;

+ Reply to Thread

Similar Threads

  1. Best place for contact form?
    By Ryan Ward in forum Increasing Conversion
    Replies: 12
    Last Post: 01-20-2008, 07:08 AM
  2. Contact Form Help
    By FairwayandIsle in forum Coding
    Replies: 6
    Last Post: 02-12-2007, 10:28 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts