Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Form validation!

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #27388
    timbaker1991
    Member

    Hi, while this form doesnt return an error message, it wont validate the field ‘ video_ID ‘ which is required but even if you leave it blank nothing happens, it will send it to the database anyway. I want the error message to appear on the form submission page heres the code:

    html page

    Code:

    Details:

    Your initials:

    Video embeded code:



    php form process page (insert.php)

    Code:

    Thanks in advance

    #68820
    JaredAM
    Member

    I’m guessing that since you use the POST array during your query, the reason it’s not validating is because you’re not using the array during your validation:

    Code:
    if ($POST[‘video_ID’]=””)
    #68858
    timbaker1991
    Member

    ive implimented that as this:

    Code:

    but still returns the same :S

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Back End’ is closed to new topics and replies.