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>









share|improve this question









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

















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>









share|improve this question









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















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>









share|improve this question









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 google-chrome






share|improve this question









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.











share|improve this question









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.









share|improve this question




share|improve this question








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




















  • 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



















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});






hardScrabble is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















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





































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.










 

draft saved


draft discarded


















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.















 


draft saved


draft discarded














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




















































































Popular posts from this blog

List item for chat from Array inside array React Native

Thiostrepton

Caerphilly