Problem with form
Posted: Sun Aug 11, 2002 7:05 am
I have a form like:
<form name="form3" method="post">
<input type="text" name="cod" value="<? print $row[aliquota]; ?>" maxlength="3" size="3" >
<? print $desc;?> // desc is set by a php search function to mysql table where cod is the code and desc is description
<input type="submit" name="Go" value="Confirm">
</form>
This dysplay corret the first time.
I would want that when comes modified the value of "cod" came automatically modified also $desc...
Is possible to call a php function with "onChange=" ?
If it is not possible, I can recall with "onChange=" a Javascript and perform the query but as I make to dysplay the desc found from the query?
Thanks
<form name="form3" method="post">
<input type="text" name="cod" value="<? print $row[aliquota]; ?>" maxlength="3" size="3" >
<? print $desc;?> // desc is set by a php search function to mysql table where cod is the code and desc is description
<input type="submit" name="Go" value="Confirm">
</form>
This dysplay corret the first time.
I would want that when comes modified the value of "cod" came automatically modified also $desc...
Is possible to call a php function with "onChange=" ?
If it is not possible, I can recall with "onChange=" a Javascript and perform the query but as I make to dysplay the desc found from the query?
Thanks