Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8536507
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T10:41:01+00:00 2026-06-11T10:41:01+00:00

I programmed a validator with JQuery and PHP that works in all browsers except

  • 0

I programmed a validator with JQuery and PHP that works in all browsers except Internet Explorer 9. I get the error message “SCRIPT5: Access denied”.

jQuery code

$('#contact-send').click(function(){
  $.post('functions/db-contact.php',{
    contact_name: $('#contact-name').val(),
    contact_email: $('#contact-email').val(),
    contact_subject: $('#contact-subject').val(),
    contact_message: $('#contact-message').val()
  },
  function(x){
    console.log(x);
  }
});

And this is the response (x):

<?xml version="1.0"?>
<response>
  <mail>
    <name>1</name>
    <email>1</email>
    <subject>1</subject>
    <message>1</message>
    <status>notok</status>
  </mail>
</response> 
SCRIPT5: Access denied

EDIT: I really have no idea what can be the error. I added the DB contact file. @Brad 🙂

<?php
include 'db_login.php';

$name = mysql_escape_string($_POST['contact_name']);
$email = mysql_escape_string($_POST['contact_email']);
$subject = mysql_escape_string($_POST['contact_subject']);
$message = mysql_escape_string($_POST['contact_message']);

echo "<?xml version=\"1.0\"?>\n";
echo "<response>\n";
echo "\t<mail>\n";

$i = 0;
if($name == 'type your name' or $name == '' or strlen(trim($name)) == 0){
  echo "\t\t<name>1</name>\n";
  $i = 1;
}

if($email == 'type your email address' or $email == '' or strlen(trim($email)) == 0){
  echo "\t\t<email>1</email>\n";
  $i = 1;
}

if($subject == 'type subject' or $subject == '' or strlen(trim($subject)) == 0){
  echo "\t\t<subject>1</subject>\n";
  $i = 1;
}

if($message == 'type your message on us' 
  or $message == '' or strlen(trim($message)) == 0){
    echo "\t\t<message>1</message>\n";
    $i = 1;
}

if($i == 1){
  echo "\t\t<status>notok</status>\n";
  echo "\t</mail>\n";
  echo "</response>";
  return false;
}

$sql = "INSERT INTO `d013f578`.`mail` (`id`, `name`, `email`, `subject`, `message`)
       VALUES (NULL, '".$name."', '".$email."', '".$subject."', '".$message."');";
$query = mysql_query($sql) or die;
echo "\t\t<status>ok</status>\n";
echo "\t</mail>\n";
echo "</response>";
?>

Unfortunately I have not found any usable tip on the internet.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T10:41:02+00:00Added an answer on June 11, 2026 at 10:41 am

    So, I have 100% the solution.
    Instead jquery 1.8, I’m using jquery 1.6.4 and the problem was thus no longer available!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i programmed a tic tac toe game in python and it works perfectly fine
I am pretty familiar with jquery, but a novice at php, so excuse me
I have programmed a sub procedure that will be called in the main procedure
I have been using php from some time and I have noticed that it
Good Evening All, A client has asked that I develop a web application as
I've recently programmed a REST web service API that allows another website to sign-up
I programmed an quiz-app and if I touch one of the answers in an
My webpart is programmed with C# and shall show a form and a checkbox.
I have programmed a shopping list. The footer contains buttons for actions on a
I've programmed in PL/SQL during half an year and I had the impression it's

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.