0
manifest.json
"manifest_version": 2,
"name": "Sample Extension",
"description": "Sample Extension",
"version": "1.0",
"browser_action": {
"default_popup": "popup.html"
},
"background":{
"scripts":["background.js"]
},
"permissions": [
"http://localhost/*"
]
popup.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="bootstrap-3.3.7-
dist/css/bootstrap.min.css">
<script src="jquery-3.2.1.slim.min.js"></script>
<script src="bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
<style>
.container{
padding: 5px;
min-width: 250px;
}
</style>
<script src="popup.js"></script>
</head>
<body>
<div class="container">
<form action = "http://localhost/db1/script.php" method="post">
<div class="form-group">
<label for="usr">Usuário:</label>
<input type="text" id="usuario" name="usuario" class="form-control"
value="vitor">
</div>
<div class="form-group">
<label for="snh">Senha:</label>
<input type="password" name="senha" class="form-control" >
</div>
<div class="form-group">
<button class="btn ">
<localized name="btnEntrar">Entrar</localized>
</button>
</div>
</form>
</div>
</body>
</html>
php script.
<?php
var_dump($_POST);
?>
When I do the receiving test in the.php script in the browser it works now when I do by extension it doesn’t work.
Welcome to Stack Overflow! You need to demonstrate the problem in the question itself (please [Edit]), instead of posting these links. See I can only show a link to my website with problems? and the tips on minimum example. Thank you.
– UzumakiArtanis