Developer Support »

Error for required field when field isn't empty  (See more user questions)

Hi

I didn't change a thing! I went to your test page and filled out the form,
attached some files and sent it! Then you got it. So it works!

That's it really. I am a visitor like any other, it worked for me. It will
work for all your visitors. Are you sure you are testing the online version
of your form and not a local copy on your own PC (just a thought)?

The doctype is this bit at the top of your code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Note it is XHTML. You don't need that for a form. I don't think that it's
an issue here, it worked for me as it should.

Your PC setup is normal, no issues there. The hosting is non Windows, ideal
for PHP.

Beats the heck out of me Wes why it goes goofy for you!

Based on the above, I reckon your first attempt on your website probably
worked too.

Can you get someone else to send a test message to see if you get it?

Best wishes.

Charles Sweeney
https://formtoemail.com
The world's easiest feedback script!

----- Original Message -----
Sent: Thursday, August 28, 2008 9:00 PM
Subject: RE: FormToEmail-Pro script


> Hi,
>
> I am getting your tests and the files are attached. I was wondering what
> you changed. I don't know what you mean by the xhtml1 doctype. I'm
> making
> the form with Dreamweaver and just saving it as a .htm file.
>
> I did not try the sample form you sent, but will continue to work with it
> to
> see if it changes anything. I'm on a PC running Windows XP and IE 7. This
> is the first non-Microsoft hosting service I've used though.
>
> I can at least see it is working, I'll keep testing on different machines
> to
> see what happens.
>
> Thanks again!!!!!!!
>
>
> -----Original Message-----
> Sent: Thursday, August 28, 2008 3:49 PM
>
> Subject: Re: FormToEmail-Pro script
>
> Hi
>
> That's really strange. It's like your server is working in reverse.
>
> I checked your script, no problems.
>
> I visited your new page:
>
> http://
>
> I couldn't replicate your problem. I sent a test message. Did you get
> it?
> I tried to send the form without entering anything. I was able to send it
> (I think the submit button is counting as a value).
>
> I then entered information in the required fields (although you are not
> checking for them). The form sent. This is the opposite of what you are
> getting?
>
> I then selected some radio buttons and uploaded three files. They all
> went.
>
> No errors. Again the opposite of what you are getting?
>
> It certainly appears to be working from where I see it. Are you getting
> the
>
> test emails from me?
>
> I see you still have the xhtml1 doctype. You are getting one error in the
> validation. I don't think this is an issue but what I was stressing
> earlier
>
> was to go right back to basics (form code only) and at least get rid of
> the
> validation errors.
>
> Did you try the code I sent? Just the basic form and one file input, ON
> ITS
>
> OWN in a page? As far as I can see, your form is working but if you can't
> see it yourself you should start from the basic form code only, get it
> working, then add to it.
>
> What setup are you using? PC? Operating system? Browser?
>
> Best wishes.
>
> Charles Sweeney
> https://formtoemail.com
> The world's easiest feedback script!
>
> ----- Original Message -----
> Sent: Thursday, August 28, 2008 6:50 PM
> Subject: RE: FormToEmail-Pro script
>
>
>> Hi again,
>>
>> Well, not sure what the problem is. Here's what I've done in order for
>> you.
>>
>> 1 - I completely remade, from scratch, a new .htm file to use just for
>> the
>> form. It's URL is http:
>>
>> 2 - I changed your new script file you sent to match the new form and
>> uploaded it to the server. New copy is attached.
>>
>> 3 - I ran the form and got an error for every required field that they
>> could
>> not be empty, even though I had information in them.
>>
>> 4 - I changed the script (to the way it is now) to not check for required
>> fields and ran it again. This time I get the error "You cannot send a
>> blank
>> form". I had all the "required" fields filled, a couple of the radio
>> boxes
>> and 3 files to upload.
>>
>> I'll admit to not having a lot of form experience, but I just don't see
>> why
>> it thinks the form is empty.
>>
>> Any ideas??
>>
>> Thanks,

>>
>>
>> -----Original Message-----
>> Sent: Thursday, August 28, 2008 10:41 AM
>> Subject: Re: FormToEmail-Pro script
>>
>> My pleasure, !
>>
>> You've got a bit of work to do now!
>>
>> If you are making a new page for the form then you can get rid of the
>> "id"
>> attributes in the input. I suspect they are there for the JavaScript.
>> You
>> certainly don't need them to process the form with my script.
>>
>> So this (for example):
>>
>> <input name="Item2Border" type="text" id="Item2Border" size="20"
>> maxlength="100" />
>>
>> Would become this:
>>
>> <input name="Item2Border" type="text" size="20" maxlength="100" />
>>
>> Same goes for the labels (<label></label>). Unless you need them for CSS
>> or
>>
>> to validate, you don't need them to process the form.
>>
>> Speaking of validation, the page currently has a xhtml1 doctype. This is
>> overkill if it's just the form you are doing. Use a straight HTML one.
>> You
>>
>> will get less errors with it.
>>
>> Any questions, just let me know.
>>
>> Best wishes.
>>
>> Charles Sweeney
>> https://formtoemail.com
>> The world's easiest feedback script!
>>
>> ----- Original Message -----
>> Sent: Thursday, August 28, 2008 3:21 PM
>> Subject: RE: FormToEmail-Pro script
>>
>>
>>> Hi,
>>>
>>> Thank you VERY much! I don't think I've dealt with anyone before that
>>> responded so quickly. I'll give it a try and let you know how it goes.