Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hello!
I'm trying to process a form with PHP, but i'm having problems on passing the values of different box i have in my form. I supposed that i'm creating form correctly
Here is the form i created:
[syntax="html"]<form action="iprodutos_.php" method="POST">
Nome: <!--webbot bot="Validation" B-Value-Required="TRUE" --><input type="text" name="nome"><br><br>
Descrição: <textarea rows="3" name="descricao" cols="26"></textarea><br><br>
Categoria:<!--webbot bot="Validation" B-Value-Required="TRUE" B-Disallow-First-Item="TRUE" -->
<select size="1" name="categoria">
<option selected value="0">Seleccione ..</option>
<option value="1">Colares</option>
<option value="2">Brincos</option>
<option value="3">Porta-Chaves</option>
<option value="4">Pulseiras</option>
<option value="5">Pinturas em Tecidos</option>
<option value="6">Pinturas em Vidro e Gesso</option>
<option value="7">Quadros</option>
</select><br><br>
Preço:<!--webbot bot="Validation" S-Data-Type="Number" S-Number-Separators="x," --><input type="text" name="preco" size="20"><br><br>
Imagem: <input type="file" name="imagem" size="40"><br><br>
<input type="submit" value="Submeter" name="enviar"><input type="reset" value="Repor" name="limpar">
</form>Now in the script iprodutos_.php i need to receive the information in $nome, $descricao,$categoria,$preco,$imagem, but i don't know how. Is there a difference to receive a string or a integer or a decimal? Because $nome,$descricao and $imagem are a string, but $categoria is a integer, and $preco is a decimal number.
Can anyone help me with the code to receive this variables in iprodutos_.php? What code do i put in it?
With the best regards
Hugo Gomes
feyd | Please use[/syntax]
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]