Thread: Required fields
View Single Post
  #3  
Old 06-27-2003, 10:34 AM
 
davesphoto davesphoto is offline
 

Member
  
Join Date: May 2003
Posts: 24
 

Default

This was easier than I thought once I found the right file. The contact mail sending is done by include/help.php. All you must do to make options not required is change code:

Code:
$fillerror = (empty($contact["firstname"]) || empty($contact["lastname"]) || empty($contact["b_address"]) || empty($contact["b_city"]) || empty($contact["b_country"]) || empty($contact["b_zipcode"]) || empty($contact["phone"]) || empty($contact["email"]) || empty($contact["subject"]) || empty($contact["body"]));

to:

Code:
$fillerror = (empty($contact["firstname"]) || empty($contact["lastname"]) || empty($contact["email"]) || empty($contact["body"]));

Now no address info is required. Emails go thru perfectly they just dont have any information in the fields that are not filled out that are no longer required.

Hope that is what you were looking for.
Reply With Quote