-2
<htlm>
<head>
<title>Horta do Bob - Resultado da compra </title>
</head>
<body>
<h1>Horta do Bob </h1>
<h2> Resultado da compra </h2>
<?php
//cria nomes de variável abreviados
$Salameqty = $_POST['Salameqty'];
$Manjericãoqty = $_POST['Manjericãoqty'];
$Abobrinhaqty = $_POST['Abobrinhaqty'];
echo '<p>Resultado processado em ';
echo date('H:i, jS F');
echo '</p>';
echo '<p>Confira seu pedido: </p>';
echo $Salameqty.' Salames<br />';
echo $Manjericãoqty.' Manjericões<br />';
echo $Abobrinhaqty.' Abobrinhas<br />';
?>
</body>
</head>
On the server, it only recognizes the first request. Other order numbers do not appear. I have checked everything, which can be?
------Form Code (Disguise Simplicity)
<form action="processorder.php" method=post>
<table border=5>
<tr bgcolor=#0091C9>
<td width=100>Lanche</td>
<td width=100>Quantos?</td>
</tr>
<tr>
<td>Salame</td>
<td align="center"><input type="text" name="Salameqty" size"2" maxlenght="5"></td>
</tr>
<tr>
<td>Manjericão</td>
<td align="center"><input type="text" name="Manjericãoqty size"2" maxlenght="2"></td>
</tr>
<tr>
<td>Abobrinha</td>
<td align="center"><input type="text" name="Abobrinhaqty size"2" maxlenght=2"></td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit" value="Processar pedido">
</td>
Enter the full code...
– MagicHat
I did. The rest of the code is firm, even recognizes the date and time, but the requests...
– Caio
See if the attribute
name
inputs is not different from rescats by$_POST
– rray
Worse than not! Until because when I click on the name, the Notepad makes the direct link.
– Caio
Enter the form code
– Amanda Lima
Code added
– Caio
I’m voting to close for typo, since the beginning of the tag
<htlm>
which does not exist, even the names of the wrong written fields, values and attributes. I suggest at least a little attention while typing before bringing the code here, saving colleagues' time. You are super welcome to ask your scheduling questions here, and we want to help, but first it is necessary that you Capriche a little more, for your own training, and better harnessing the knowledge of colleagues, achieving more autonomy to program, and best results here.– Bacco
I do not usually comment when negative, but I will make an exception: I denied your question precisely by what Bacco quoted above, it seems that you have had a lot of inattention in your code, and this question can hardly help anyone solve a real problem (as this is a typo). Hence the negative. Understand that I am not negatively "your person", but the content. Votes are a qualitative one to assess whether the question is good or not. OK?
– Wallace Maxters
Don’t put it on! I was stupid. I’m starting to get the level of things around here, and I promise that a stupid problem like this will not happen again here, thank you!
– Caio
@I’m glad you didn’t take it personally, this is very important to everything in life. Get on your side there, we’ll do whatever we can to help you when you need it. And over time, your doubts and posts will naturally improve, and along with that the score as well. Here are some cool tips when you have a little time to read: [Ask] and [Help]. And welcome to the network! Rest assured, that taking a "jolt" from the community in the first questions is super normal :)
– Bacco