WordPress database error: [Table './ay6u3nor6dat6ba1/kn6_ayu1n9k4_5_actionscheduler_actions' is marked as crashed and last (automatic?) repair failed]
SELECT a.action_id FROM kn6_ayu1n9k4_5_actionscheduler_actions a WHERE 1=1 AND a.hook='aioseo_send_usage_data' AND a.status IN ('in-progress') ORDER BY a.scheduled_date_gmt ASC LIMIT 0, 1

WordPress database error: [Table './ay6u3nor6dat6ba1/kn6_ayu1n9k4_5_actionscheduler_actions' is marked as crashed and last (automatic?) repair failed]
SELECT a.action_id FROM kn6_ayu1n9k4_5_actionscheduler_actions a WHERE 1=1 AND a.hook='aioseo_send_usage_data' AND a.status IN ('pending') ORDER BY a.scheduled_date_gmt ASC LIMIT 0, 1

Required Fields JavaScript Validation | Loop and Break

Required Fields JavaScript Validation

The function below checks if a field has been left empty. If the field is blank, an alert box alerts a message, the function returns false, and the form will not be submitted:

<html>
<head>
<title>JavaScript Validations</title>
<script>
function validateForm()
{
var x=document.forms["Form1"]["name"].value;
if (x==null || x=="")
  {
  alert("name must be filled out");
  return false;
  }
}</script>
</head>
<body>
<form name="Form1" action="second.php" onsubmit="return validateForm()" 
method="post">
  name:
  <input type="text" name="name">
  <input type="submit" value="Submit">
</form>
</body>
</html>
Share

You may also like...