form

This is a discussion on "form" within the PHP Forum section. This forum, and the thread "form are both part of the Program Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jun 30th, 2007, 19:27
Junior Member
Join Date: Jun 2007
Location: London
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
form

I have created a form on which you browse for images, using a php form wizard (because I cannot create php myself). The problem with that wizard is:
validation!
All fields have a choice of validation, except for the image field. This does not allow a choice and is automatically validated but I need this to be optional - no validation
The question is:
what piece of coding would need to be deleted or inserted to make validation optional.
I did ask the producer of this software for advice but not luck, no response.
If you can help, I could publish part of the code relating to the image part.
Thanks
Gabriele
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Jul 2nd, 2007, 14:35
masonbarge's Avatar
Highly Reputable Member
Join Date: Jan 2006
Location: Atlanta GA
Posts: 631
Thanks: 0
Thanked 0 Times in 0 Posts
Re: form

Gabriele, I'm sorry, but I just don't understand the question.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jul 2nd, 2007, 21:16
Junior Member
Join Date: Jun 2007
Location: London
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Re: php form - optional fields

php form - optional fields

I have used a wizard to design the form below:

http://www.announcewedding.com/form1gold.html

Some fields are optional and allow choice of completion, but with the 'browse for image' field it does not and will not 'send' until an image is attached. This field, however, needs to be optional. How can I make it optional?
Does this explanation help? Otherwise, do you know of any good php form wizards?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Jul 3rd, 2007, 07:52
Highly Reputable Member
Join Date: Apr 2007
Location: Willich, Germany
Age: 20
Posts: 593
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: form

Yup, I'm a really good php form wizard...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Jul 4th, 2007, 08:07
Junior Member
Join Date: Jun 2007
Location: London
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Re: form

Hi, I am actually German myself but will keep the communication in English.
The php form (link as per previous thread) comes from a pre-designed wizard, a script which I bought. I designed a form for a large website project asking the person completing it to attach an image but I want this field to be optional since he/she may or may not wish to attach a photo but the rest of the information on the form should nevertheless reach me.
Not knowing anything about php scripting, I am guessing there must be some string of coding, which enables a field to be optional and that is what I want to know.
Any idea? Much obliged. Tschuess.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Jul 4th, 2007, 08:39
Highly Reputable Member
Join Date: Apr 2007
Location: Willich, Germany
Age: 20
Posts: 593
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: form

Hi, I am actually also German, but I grew up in America and just recently moved back to Germany.

I get a 404 when I try to post the form... so I couldn't test it....
As far as I can tell, only reference number, name and email are required fields (or what are the red stars for). Or does the red "attach" mean that pictures are also required?
You'll have to modify the php script. You said you bought it, so I don't know if you have the rights to post it or a small section of it here, but to help you we need to see some code.

Schöne Grüße und viel Glück aus Deutschland!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Jul 4th, 2007, 10:42
Junior Member
Join Date: Jun 2007
Location: London
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Re: form

Vielen Dank
None of my forms are working now! And they were before, how dreadful! - so I'll have to get to the bottom of this but duty calls so I may not be able to resolve this for a few days.
However, I will get back to you about the php question.
Bis demnaechst
Gaby
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Jul 15th, 2007, 13:00
Junior Member
Join Date: Jun 2007
Location: London
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Re: php form validation

Hi
If you are still prepared to look into my php validation challenge (the forms are now working, glad you pointed this out to me), here are the 2 adresses:
the form itself
www.announcewedding.com/form1gold.html and the php script
www.announcewedding.com/form1gold_php_script.html
the section VALIDATION is the focus - as I said uploading images should not be a validated field, it needs to be optional. The fields which are validated display a little red star on the form itself (you've guessed).
I would really appreciate if you could take a look, it may be a very simple solution.
Bis bald
Gabriele
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Jul 15th, 2007, 13:10
Up'n'Coming Member
Join Date: Sep 2006
Location: UK
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
Re: form

Remove this line:
PHP: Select all

if( $file_Size == 0)
{
die(
"<p align='center'><font face='Arial' size='3' color='#000000'>Please attach Photographs</font></p>");


Then, before
PHP: Select all

if( $file_Size >2000000
Add:
PHP: Select all

if ($file_Size != 0) { 

And after
PHP: Select all

$file_URL "http://www.announcewedding.com/clientinfo/photographs/".$file_Name 
Add
PHP: Select all


That should sort it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Jul 15th, 2007, 13:32
Junior Member
Join Date: Jun 2007
Location: London
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Re: form

thank you very much, balaclave!
I will try this.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old Jul 16th, 2007, 15:36
Junior Member
Join Date: Jun 2007
Location: London
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Re: form

I have tested the form - it works! Your instructions have been very clear and I am impressed. Thank you again,
Gabriele
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old Jul 16th, 2007, 16:10
Up'n'Coming Member
Join Date: Sep 2006
Location: UK
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
Re: form

Quote:
Originally Posted by Gabriele View Post
I have tested the form - it works! Your instructions have been very clear and I am impressed. Thank you again,
Gabriele
No problem.
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

Tags
browse, form, image, no validation, php, validation

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
Hiding / Showing form fields based on previous form input John Alexander Hopper PHP Forum 1 Mar 10th, 2008 11:30
form variable within an iframe component of a form kissfreaque PHP Forum 3 Feb 29th, 2008 13:06
form variable within an iframe component of a form kissfreaque JavaScript Forum 5 Feb 29th, 2008 11:57
[SOLVED] PHP contact form redirect to same form Posie PHP Forum 14 Jan 29th, 2008 20:28
ASP form to check weather a form value is already in the database Andrew1986 Classic ASP 3 Oct 25th, 2007 08:23


All times are GMT. The time now is 00:58.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42