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.
|
|
|
|
|
![]() |
||
form
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
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 |
|
|
|
||||
|
Re: form
Gabriele, I'm sorry, but I just don't understand the question.
|
|
|||
|
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? |
|
||||
|
Re: form
Yup, I'm a really good php form wizard...
Last Blog Entry: 10 Reasons Why My Laptop Is Better Than Your Girlfriend (Dec 15th, 2007)
|
|
|||
|
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. |
|
||||
|
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!!!
Last Blog Entry: 10 Reasons Why My Laptop Is Better Than Your Girlfriend (Dec 15th, 2007)
|
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
Re: form
Remove this line:
Then, before
|
|
|||
|
Re: form
thank you very much, balaclave!
I will try this. |
|
|||
|
Re: form
I have tested the form - it works! Your instructions have been very clear and I am impressed. Thank you again,
Gabriele |
|
|||
|
Re: form
Quote:
|
![]() |
| Tags |
| browse, form, image, no validation, php, validation |
| Thread Tools | |
|
|
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 |