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 6129519
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:45:07+00:00 2026-05-23T16:45:07+00:00

I have a form made in js by my developer, and I have implemented

  • 0

I have a form made in js by my developer, and I have implemented a function where I am sent an email, and the input data from the form is put into a mysql query and then into my database. However the database query doesn’t work in the method, neither does any echos or anything. By this I mean that the query is not run, and no echos show up on the page containing this code.

Please can you tell me what is causing this?

Here is the process() method where the error is occuring:

    function process()
    {
       echo "hi";
        $device = mysql_real_escape_string($_POST['Device_Type']);
        $name = mysql_real_escape_string($_POST['Name']);
        $job = mysql_real_escape_string($_POST['DD']);
        $username = mysql_real_escape_string($_POST['Username']);
        $email = mysql_real_escape_string($_POST['Email']);
        $website = $_POST['Website']);
        $UDID = mysql_real_escape_string($_POST['UDID']);
        mysql_connect("localhost", "...", "...");
        mysql_select_db("...");
        mysql_query("INSERT INTO Beta_Testers (`Name`, `Username`, `Email Address`, `Website`, `Job`, `Device_Type`, `UDID`) VALUES ('$name','$username','$email','$website','$job','$device','$UDID')") or die(mysql_error());   
          $msg = "Form Contents: \n\n";
          foreach($this->fields as $key => $field)
                $msg .= "$key :  $field \n ";
          $to = '';
          $subject = 'Beta Form Submission';
          $from = 'Beta Sign up';
          mail($to, $subject, $msg, "From: $from\r\nReply-To: $from\r\nReturn-Path: $from\r\n");   
       }
  • 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-05-23T16:45:08+00:00Added an answer on May 23, 2026 at 4:45 pm

    Check the line with $website. You have an extra parenthesis on the end (or perhaps, a missing mysql_real_escape call on the other side).

    To check for syntax errors like this in the future, run php -l myfile.php on the command line. Or, during development and testing, make sure you have error_reporting and display_errors configured correctly so that these syntax errors are displayed in the script’s output.

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

Sidebar

Related Questions

I have made a class which a form can inherit from and it handles
I have form with one input for email and two submit buttons to subscribe
I have a remote form with hand-made buttons using tags. I'm using data-remote=true in
I have to work with a Project made by another developer. A project Win-Form
I have a form made up of multiple, optional subparts - each of which
I have started using jQuery and rails. I have made a simple form that
Post-release, I have made one small change to one form in our development site
i have a rails form ive made in which the form fields are extracted
So I have a script that makes dynamic form content and each input has
So I have a script that makes dynamic form content and each input has

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.