Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About djoez

  • Rank
  1. djoez

    button error

    thnx, its a lot, but it works
  2. djoez

    button error

    the number buttons work. when pressed enter the number witch was putted in is copied to the field above and the + button works. but thats all o. and the 4 buttons besides the input fields clear the field when pressed
  3. djoez

    button error

    in your script it is only possible to add. What i'm trying to accomplish is to use all possible calculation types at the touch of a button. In other words, i want to make more than one button with different functions. ( 1st +, 2nd -, 3th * and 4th /)
  4. djoez

    button error

    I'm quite new at html scripting so i'm all sorts of stuff i've made a submit form (http://wduizer.nl/basic_web_development/index2.php) Now for my problem.. I made a small calculator (http://wduizer.nl/basic_web_development/probeersel/rekenen.php). When i fill in the numbers and hit a function button with the mouse the form clears and i'll get no answer, but when i'll fill it out and go to a button using tab and enter it works like a charm?!? Can someone please tell me why? this is the script i've used for the front form: <html> <body> <form action="resultaat.php" method="post"> <table> <tr> <td>getal 1:</td><td> <input type="tekst" name="getal_1"></td> </tr> <tr> <td>bewerking (+-/*)</td><td> <input type="tekst" name="bewerking"></td> </tr> <tr> <td>getal 2:</td><td> <input type="tekst" name="getal_2"></td> </tr> <tr> <td> <input type="submit"> </td> </tr> </html> </body> and this for the calculation (+): <html> <body style="background-color:#333399;"> <p style="font-family:arial;color:#999999;font-size:500px;"> <?php echo $_POST["getal1"] + $_POST["getal2"] ; ?></p> </html> </body>
  • Create New...