Forcing a field
I have a code for contact form.
It has a field for attach images. I want to Force users for send an image.
How can I do it?

I attached the code.
[sorry for my bad English Big Grin  ]

Attached Files
.php   form_code.php (Size: 9.48 KB / Downloads: 48)
Check if it's empty (replace myField to whatever you field name is)

if (empty($_POST['myField']))
    die('Do not leave the field empty.');

Forum Jump:

Users browsing this thread: 1 Guest(s)