Botones php y html
Publicado por Pau (11 intervenciones) el 14/05/2019 18:52:08
Hola, estoy haciendo una calculador con php.
Con html he creado los botones y un cuadro para poner los valores.
Pero no sé cómo hacer para cuando pulse el botón se me ponga en el cuadro.
Os dejo por aqui lo que tengo echo de html de php no se como empezar.
Gracias
html:
Si alguien tiene una idea mejor de lo que tengo que me lo diga también. Pero que sea con formato php…
Con html he creado los botones y un cuadro para poner los valores.
Pero no sé cómo hacer para cuando pulse el botón se me ponga en el cuadro.
Os dejo por aqui lo que tengo echo de html de php no se como empezar.
Gracias
html:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<html>
<head>
<title>
Name
</title>
</head>
<body>
<form action="P4_2.php" method="$_GET" >
<input type = "textfield" name="tab" value=" "><br>
<input type="button" value="1">
<input type="button" value="2">
<input type="button" value="3">
<input type="button" value="+"><br>
<input type="button" value="4">
<input type="button" value="5">
<input type="button" value="6">
<input type="button" value="-"><br>
<input type="button" value="7">
<input type="button" value="8">
<input type="button" value="9">
<input type="button" value="*"><br>
<input type="button" value="/">
<input type="button" value="0">
<input type="button" value="**">
<input type="button" value= "="><br>
</form>
</body>
</html>
Si alguien tiene una idea mejor de lo que tengo que me lo diga también. Pero que sea con formato php…
Valora esta pregunta


2