Issues Connecting databse to Chrome extension
up vote
0
down vote
favorite
I am trying to make a Chrome extension. Currently I have an AWS database running on MySQL workbench and I am trying to get it connected to the extension. My PHP file is simply just trying to connect to the database on the submit of an HTML form. I am following the videos (parts 1-4) form this link https://www.youtube.com/watch?v=dpLbADRh830
Right now I am using localhost as my server and on submit of the form, my extension says "This site can’t be reached localhost refused to connect." I have no clue where to go from here and this is honestly my first database experience so I apologize if this is a silly problem.
<?php
$name=$_POST['name'];
$email=$_POST['email'];
if(!isset($_POST['submit'])){
echo $email;
}
?>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<form action="http://localhost/db/tester_script.php" method="POST">
<input type="text" name="name" placeholder="name"><br>
<input type="text" name="email" placeholder="email"><br>
<input type="submit" value="submit">
</form>
</body>
</html>
php mysql
New contributor
hardScrabble is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
|
show 10 more comments
up vote
0
down vote
favorite
I am trying to make a Chrome extension. Currently I have an AWS database running on MySQL workbench and I am trying to get it connected to the extension. My PHP file is simply just trying to connect to the database on the submit of an HTML form. I am following the videos (parts 1-4) form this link https://www.youtube.com/watch?v=dpLbADRh830
Right now I am using localhost as my server and on submit of the form, my extension says "This site can’t be reached localhost refused to connect." I have no clue where to go from here and this is honestly my first database experience so I apologize if this is a silly problem.
<?php
$name=$_POST['name'];
$email=$_POST['email'];
if(!isset($_POST['submit'])){
echo $email;
}
?>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<form action="http://localhost/db/tester_script.php" method="POST">
<input type="text" name="name" placeholder="name"><br>
<input type="text" name="email" placeholder="email"><br>
<input type="submit" value="submit">
</form>
</body>
</html>
php mysql
New contributor
hardScrabble is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
You should first check the security group of your AWS database to make sure that your IP address is not being blocked
– Jamie_D
yesterday
Thanks Jamie. I did do that and it's not.
– hardScrabble
yesterday
Are you seeing any error messages in the development console other than the one you describe?
– Jamie_D
yesterday
No, the console stays clean. When I open the script.php file in the browser with local host, it registers so I know local host is running fine. The only error is the one that pops up when I try to submit the form in the chrome extension. Sorry this doesn't help much. I just have no clue what is going wrong. I followed the video tutorial exactly.
– hardScrabble
yesterday
Can you post any source code? It may help in determining the issue .... (Do not reveal any connection usernames/passwords)
– Jamie_D
yesterday
|
show 10 more comments
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am trying to make a Chrome extension. Currently I have an AWS database running on MySQL workbench and I am trying to get it connected to the extension. My PHP file is simply just trying to connect to the database on the submit of an HTML form. I am following the videos (parts 1-4) form this link https://www.youtube.com/watch?v=dpLbADRh830
Right now I am using localhost as my server and on submit of the form, my extension says "This site can’t be reached localhost refused to connect." I have no clue where to go from here and this is honestly my first database experience so I apologize if this is a silly problem.
<?php
$name=$_POST['name'];
$email=$_POST['email'];
if(!isset($_POST['submit'])){
echo $email;
}
?>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<form action="http://localhost/db/tester_script.php" method="POST">
<input type="text" name="name" placeholder="name"><br>
<input type="text" name="email" placeholder="email"><br>
<input type="submit" value="submit">
</form>
</body>
</html>
php mysql
New contributor
hardScrabble is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I am trying to make a Chrome extension. Currently I have an AWS database running on MySQL workbench and I am trying to get it connected to the extension. My PHP file is simply just trying to connect to the database on the submit of an HTML form. I am following the videos (parts 1-4) form this link https://www.youtube.com/watch?v=dpLbADRh830
Right now I am using localhost as my server and on submit of the form, my extension says "This site can’t be reached localhost refused to connect." I have no clue where to go from here and this is honestly my first database experience so I apologize if this is a silly problem.
<?php
$name=$_POST['name'];
$email=$_POST['email'];
if(!isset($_POST['submit'])){
echo $email;
}
?>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<form action="http://localhost/db/tester_script.php" method="POST">
<input type="text" name="name" placeholder="name"><br>
<input type="text" name="email" placeholder="email"><br>
<input type="submit" value="submit">
</form>
</body>
</html>
php mysql
php mysql
New contributor
hardScrabble is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
hardScrabble is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited yesterday
New contributor
hardScrabble is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked yesterday
hardScrabble
12
12
New contributor
hardScrabble is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
hardScrabble is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
hardScrabble is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
You should first check the security group of your AWS database to make sure that your IP address is not being blocked
– Jamie_D
yesterday
Thanks Jamie. I did do that and it's not.
– hardScrabble
yesterday
Are you seeing any error messages in the development console other than the one you describe?
– Jamie_D
yesterday
No, the console stays clean. When I open the script.php file in the browser with local host, it registers so I know local host is running fine. The only error is the one that pops up when I try to submit the form in the chrome extension. Sorry this doesn't help much. I just have no clue what is going wrong. I followed the video tutorial exactly.
– hardScrabble
yesterday
Can you post any source code? It may help in determining the issue .... (Do not reveal any connection usernames/passwords)
– Jamie_D
yesterday
|
show 10 more comments
You should first check the security group of your AWS database to make sure that your IP address is not being blocked
– Jamie_D
yesterday
Thanks Jamie. I did do that and it's not.
– hardScrabble
yesterday
Are you seeing any error messages in the development console other than the one you describe?
– Jamie_D
yesterday
No, the console stays clean. When I open the script.php file in the browser with local host, it registers so I know local host is running fine. The only error is the one that pops up when I try to submit the form in the chrome extension. Sorry this doesn't help much. I just have no clue what is going wrong. I followed the video tutorial exactly.
– hardScrabble
yesterday
Can you post any source code? It may help in determining the issue .... (Do not reveal any connection usernames/passwords)
– Jamie_D
yesterday
You should first check the security group of your AWS database to make sure that your IP address is not being blocked
– Jamie_D
yesterday
You should first check the security group of your AWS database to make sure that your IP address is not being blocked
– Jamie_D
yesterday
Thanks Jamie. I did do that and it's not.
– hardScrabble
yesterday
Thanks Jamie. I did do that and it's not.
– hardScrabble
yesterday
Are you seeing any error messages in the development console other than the one you describe?
– Jamie_D
yesterday
Are you seeing any error messages in the development console other than the one you describe?
– Jamie_D
yesterday
No, the console stays clean. When I open the script.php file in the browser with local host, it registers so I know local host is running fine. The only error is the one that pops up when I try to submit the form in the chrome extension. Sorry this doesn't help much. I just have no clue what is going wrong. I followed the video tutorial exactly.
– hardScrabble
yesterday
No, the console stays clean. When I open the script.php file in the browser with local host, it registers so I know local host is running fine. The only error is the one that pops up when I try to submit the form in the chrome extension. Sorry this doesn't help much. I just have no clue what is going wrong. I followed the video tutorial exactly.
– hardScrabble
yesterday
Can you post any source code? It may help in determining the issue .... (Do not reveal any connection usernames/passwords)
– Jamie_D
yesterday
Can you post any source code? It may help in determining the issue .... (Do not reveal any connection usernames/passwords)
– Jamie_D
yesterday
|
show 10 more comments
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
hardScrabble is a new contributor. Be nice, and check out our Code of Conduct.
hardScrabble is a new contributor. Be nice, and check out our Code of Conduct.
hardScrabble is a new contributor. Be nice, and check out our Code of Conduct.
hardScrabble is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53237060%2fissues-connecting-databse-to-chrome-extension%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
You should first check the security group of your AWS database to make sure that your IP address is not being blocked
– Jamie_D
yesterday
Thanks Jamie. I did do that and it's not.
– hardScrabble
yesterday
Are you seeing any error messages in the development console other than the one you describe?
– Jamie_D
yesterday
No, the console stays clean. When I open the script.php file in the browser with local host, it registers so I know local host is running fine. The only error is the one that pops up when I try to submit the form in the chrome extension. Sorry this doesn't help much. I just have no clue what is going wrong. I followed the video tutorial exactly.
– hardScrabble
yesterday
Can you post any source code? It may help in determining the issue .... (Do not reveal any connection usernames/passwords)
– Jamie_D
yesterday