Hello, i'm new in webspeed.
I've got an html file which contains a form, and i want to take the value of an input text. The get-value don't work. How can I do?
I've got this code:
<script language="JavaScript" type="text/javascript">
function test()
{
<!--wss
define variable test as character no-undo.
assign test = get-value("nom":U).
find customer where customer.name = test no-lock no-error.
-->
window.location= "<!--WSS
{&OUT} IF AVAILABLE(customer) THEN "proforma2_non.html" ELSE "default.html". -->";
}
</script>
<body bgcolor="#3366CC">
<form name="form1" method="post">
<center>
<table>
<tr>
<td> nom </td>
<td> <input type="text" name="nom"> </td>
</tr>
<tr>
<td> <input type="button" name="Submit" value="Rechercher" onclick=test()> </td>
</tr>
</table>
</center>
</form>
</body>
</html>
I've got an html file which contains a form, and i want to take the value of an input text. The get-value don't work. How can I do?
I've got this code:
<script language="JavaScript" type="text/javascript">
function test()
{
<!--wss
define variable test as character no-undo.
assign test = get-value("nom":U).
find customer where customer.name = test no-lock no-error.
-->
window.location= "<!--WSS
{&OUT} IF AVAILABLE(customer) THEN "proforma2_non.html" ELSE "default.html". -->";
}
</script>
<body bgcolor="#3366CC">
<form name="form1" method="post">
<center>
<table>
<tr>
<td> nom </td>
<td> <input type="text" name="nom"> </td>
</tr>
<tr>
<td> <input type="button" name="Submit" value="Rechercher" onclick=test()> </td>
</tr>
</table>
</center>
</form>
</body>
</html>