Jump to content

EmilyM

New Members
  • Content Count

    3
  • Joined

  • Last visited

Community Reputation

0 Neutral

About EmilyM

  • Rank
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. @mac_gyver Yes I thought most of that was the case I just can't seem to work out how to do it with my code example.
  2. Surely someone can just go into the dev tools and turn this validation off if it's in javascript and thus send unvalidated data to the database?
  3. Hi I'm have a PHP form that submits to a MYSQL database and I'm trying to make it so when any form input field is empty the user gets a message below that field and the data isn't submitted. I can't seem to get it work though? The data submits OK when I don't have any validation but obviously if the fields are empty then a blank record just gets added to the database. <?php // submit data to database if (isset($_POST['submit'])) { // assign variable names to name attributes from the form $firstname = $_POST['first-name'
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.