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!
Am New for PHP code. here am doing an small & basic code about operators. but i cant get result idont know that what is going wrong on my code. plz frnds guide me for this following code :-
If you want the result in the textbox then you have to put it there yourself. You have an echo $result; that will work but you put it in the wrong place.
Your <form> needs to start before the input fields for them to be included:
[syntax]
<form id="form1" name="form1" method="post" action="" >
<p align="justify">First Value
<input type="text" name="x" id="" />
</p>
<p align="justify">
Second Value
<input type="text" name="y" id="" />
</p>
<p align="justify">Result
<input type="text" name="result" />
</p>