Problem with form

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
edoardor
Forum Newbie
Posts: 7
Joined: Sun Aug 11, 2002 7:05 am
Location: Italy

Problem with form

Post by edoardor »

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
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

edoardor
Forum Newbie
Posts: 7
Joined: Sun Aug 11, 2002 7:05 am
Location: Italy

Post by edoardor »

If I have understood well is not possible in no way.........
Post Reply