Sei que não tem como colocar 2 action, tentei colocar:
if($_POST["nome_do_botao_submit_do_script"]){ $campo_busca = "$_POST[''"]; "INSERT INTO ..."; }
tentei fazer mais ou menos isso mas não deu certo.
valews!
Posted 16/02/2009, 10:41
if($_POST["nome_do_botao_submit_do_script"]){ $campo_busca = "$_POST[''"]; "INSERT INTO ..."; }
Posted 18/02/2009, 08:39
<form action="http://www.google.com/cse" id="cse-search-box"> <div> <input type="hidden" name="cx" value="partn9999999999999" /> <input type="hidden" name="ie" value="ISO-8859-1" /> <input type="text" name="q" size="31" /> <input type="submit" name="sa" value="Pesquisar" /> </div> </form> <script type="text/javascript" src="/cse/brand?form=cse-search-box&lang=pt"></script>
<script> function enviaForm() { var Cx = document.getElementById('cx').value; var Ie = document.getElementById('ie').value; var Q = document.getElementById('q').value; location.href = 'paginaTal.php?cx='+Cx+'&ie='+Ie+'&q='+Q; } </script> <form action="java script:enviaForm()" id="cse-search-box"> <div> <input type="hidden" id="cx" name="cx" value="partn9999999999999" /> <input type="hidden" id="ie" name="ie" value="ISO-8859-1" /> <input type="text" id="q" name="q" size="31" /> <input type="submit" name="sa" value="Pesquisar" /> </div> </form> <script type="text/javascript" src="/cse/brand?form=cse-search-box&lang=pt"></script>
<?php echo" <script> location.href = 'http://www.google.com/cse?cx=$_GET[cx]&ie=$_GET[ie]&q=$_GET[q]'; </script>"; ?>
Edição feita por: fiote, 18/02/2009, 08:46.
0 membro(s), 0 visitante(s) e 0 membros anônimo(s)