Salve a tutti...
Ho un problema ho bisogno di simulare un collegamento <a href=""> utilizzando dei button per passare dei parametri tramite POST, credo di esserci riuscito con l'aiuto di un amico utilizzando i CSS ma, funge solo con FireFox e con I.E. 7 no...
Dove sbaglio?
Adesso il metodo è GET ma solo per vedere se funzionava.
<html>
<head>
<title>-----</title>
<style type="text/css">
button { border:0; background:transparent; }
</style>
<script type="text/javascript">
function IdGalleriaGalleria(id_cat)
{
id_cat.value.name.submit();
}
</script>
</head>
<body>
<form method="get" action="#">
<button onclick="IdGalleriaGalleria(this.form)" value="1" name="id_galleria">galleria 1</button>
<br />
<button onclick="IdGalleriaGalleria(this.form)" value="2" name="id_galleria">galleria 2</button>
</form>
</body>
</html>
Saluti...
Ho un problema ho bisogno di simulare un collegamento <a href=""> utilizzando dei button per passare dei parametri tramite POST, credo di esserci riuscito con l'aiuto di un amico utilizzando i CSS ma, funge solo con FireFox e con I.E. 7 no...
Dove sbaglio?
Adesso il metodo è GET ma solo per vedere se funzionava.
<html>
<head>
<title>-----</title>
<style type="text/css">
button { border:0; background:transparent; }
</style>
<script type="text/javascript">
function IdGalleriaGalleria(id_cat)
{
id_cat.value.name.submit();
}
</script>
</head>
<body>
<form method="get" action="#">
<button onclick="IdGalleriaGalleria(this.form)" value="1" name="id_galleria">galleria 1</button>
<br />
<button onclick="IdGalleriaGalleria(this.form)" value="2" name="id_galleria">galleria 2</button>
</form>
</body>
</html>
Saluti...