iEntry 10th Anniversary Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > PHP

Reply
 
LinkBack Thread Tools
Old November 4th, 2008, 06:26 AM   #1
New Member
 

Join Date: Nov 2008
Location: NC
Age: 36
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 crystalnnc is on a distinguished road
Question Need PHP form help with "required" element

Hey gang, I am trying to add a simple form to send basic info, and want all the elements to be optional except the Type and Email info...but the form will not submit unless a file has been attached...can anyone help?
I have tried using "Not Required" rather than "" but no luck..???

Here's the code:
$form_mail[] = array( "name" => "Type_of_Appraisal_Inquiry", "text" => "Type of Appraisal Inquiry", "type" => "checkbox", "required" => "Required" ) ;
$form_mail[] = array( "name" => "Make", "text" => "Make", "type" => "text", "required" => "" ) ;
$form_mail[] = array( "name" => "Model", "text" => "Model", "type" => "text", "required" => "" ) ;
$form_mail[] = array( "name" => "VIN", "text" => "VIN", "type" => "text", "required" => "" ) ;
$form_mail[] = array( "name" => "Pertinent_Info", "text" => "Pertinent Info", "type" => "textarea", "required" => "" ) ;
$form_mail[] = array( "name" => "Attach_Docs_or_Pics_here", "text" => "Attach Docs or Pics here", "type" => "attachment", "required" => "" ) ;>
$form_mail[] = array( "name" => "Email_Contact", "text" => "Email Contact", "type" => "email", "required" => "Required" ) ;

And the forms here if you want to read it, I used Free Form Maker.com to help, I am new to PHP...

http://www.carolinaspecialtyappraisal.com/form.php
crystalnnc is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old November 5th, 2008, 04:57 PM   #2
Most Reputable Member
 

Join Date: Feb 2008
Location: In My Own Little World
Age: 15
Posts: 1,346
Blog Entries: 9
Thanks: 2
Thanked 45 Times in 45 Posts
Rep Altering Power: 0 CloudedVision is on a distinguished road
Re: Need PHP form help with "required" element

All that code is showing us is an array. Where's the code that processes the array?

Have you tried required=>false?
__________________
Theron Luhn
CloudedVision is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a "tag" system to find relevant "related" pages MrQuestions PHP 3 March 20th, 2008 08:06 PM
[SOLVED] Show "Image" Depends On User "Status"? Monie Classic ASP 6 October 15th, 2007 09:22 PM
? IS "meta name="robots" content="?" necessary in pages ? Love2Java Your Design and Layout 6 August 8th, 2007 09:48 AM
window.opener.document["nameForm"].getElementById("someid").value; doesnt work drpompeii JavaScript 0 February 17th, 2007 07:09 PM
Getting a "At least one recipient is required, but none were found." error message weezie Classic ASP 1 February 15th, 2006 10:02 AM


Search Engine Optimization by vBSEO 3.2.0 RC8