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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:52:27+00:00 2026-05-26T14:52:27+00:00

If you visit my script page.php in the URL. A 500 Error appears. If

  • 0

If you visit my script “page.php” in the URL. A 500 Error appears. If you submit through a form it works.

<?php
## send forgot pass
$a=$_REQUEST['email_address'];
include("template.funcs.php");
$yz = mysql_connect("","","");
mysql_select_db("", $yz);
$b=mysql_real_escape_string($a);
$d=mysql_query("SELECT * FROM `customers` WHERE `customers_email` = '".$b."'");
    if (mysql_affected_rows()==0){
        header("Location: cart.php?pass=notsent");
    }else{
        send_registration_email($b,'','','');
        header("Location: cart.php?pass=sent");
    }
mysql_close($yz);
?>
  • 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-26T14:52:28+00:00Added an answer on May 26, 2026 at 2:52 pm

    A 500 error is a server side error, and I’ve found the best way to fix this is to check the logs on your server.

    On the other hand, looking at your code, you may not have defined $_REQUEST[’email_address’]. Try this:

    <?php
    if (isset($_REQUEST['email_address'])) {
        ## send forgot pass
        $a=$_REQUEST['email_address'];
        include("template.funcs.php");
        $yz = mysql_connect("","","");
        mysql_select_db("", $yz);
        $b=mysql_real_escape_string($a);
        $d=mysql_query("SELECT * FROM `customers` WHERE `customers_email` = '".$b."'");
            if (mysql_affected_rows()==0){
                header("Location: cart.php?pass=notsent");
            }else{
                send_registration_email($b,'','','');
                header("Location: cart.php?pass=sent");
            }
        mysql_close($yz);
    }
    ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm getting a fatal PHP error when trying to execute my script: Using $this
I have my greasemonkey script scanning every page i visit for a specific string.
Following is a script+HTML that tells the user his last visit to page. <html
In my page, I'm using a javascript function <script> function redirect(){ window.location=hurray.php; } </script>
I have a script which tracks visits & referers to a website. I send
Please visit http://domenadesign.com/istra-bike.com with Firefox browser! After a few clicks on the links page
If you visit this page in Internet explorer, and choose a value from the
If you visit http://www.tenxian.com/jp/common/signup.php? with Firefox, you will find that the button 同意して、アカウントを作成します is
I'm trying to visit a page with cucumber, with: visit new_video_path but I get
I list a lot of users on my page and I use a php

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.