TEXT Box
<input type=“text” name=“cod_meio” id=“cod_meio” value=“”>
BUTTON
<input type=“button” name=“inspecionar” id=“inspecionar” value=“inspecionar” onClick=“location.href=‘/wisegest/index_insp.php?cod_meio= ???’”>
What should I write in front of the URL parameter to write the value to write in the textbox?
Thanks
MarPlo
2
Hi,
Try this:
<input type="button" name="inspecionar" id="inspecionar" value="inspecionar" onclick="location.href='/wisegest/index_insp.php?cod_meio='+ document.getElementById('cod_meio').value;">
you’d better create a form
<form action="wisegest/index_insp.php" method="get">
<input type="text" name="cod_meio" id="cod_meio" value="" />
<input type="submit" id="inspecionar" value="inspecionar" />
</form>
If you need those elements to be in line, just add style=“display:inline” to your form tag.
Thank you so much for your help.
Is solved both ways …
great Hug