-1
Hey there, guys! My question is basically this. I have a form, where people put their name, phone, city, product option (property/ car). When clicking submit, I need a screen with a table of values referring to your product option.
For example, I filled in the data and placed it immobile. When submitting the form, the table of values will appear.
Note: The form code is ready and it is already sending the data to the barcode. However, I need to know how to make appear the product option that the customer chose, when filling it.
How can I do that?
<h2>SIMULE AGORA SEU CONSÓRCIO!</h2><br/><br/>
<div class="col-md-6">
<img src="img/simule.jpg" class="imagem" alt="Vitor Cons�rcios">
</div>
<div class="col-md-1"></div>
<form action="simulador.php" method="post" name="dados" id="dados" onSubmit="return validaform()">
<div class="col-md-5 esquerda">
Selecione o bem<br/>
<select name="tipo" type="text" class="contat3" placeholder="Selecione o bem">
<option value="Im�vel""
style="background-color: #fff;">Imóveis</option>
<option value="Autom�vel""
style="background-color: #fff;">Automóveis</option>
<option value="Moto" style="background-color: #fff;">Motos</option>
</select><br/>
Selecione o plano<br/>
<select name="plano" type="text" class="contat3">
<option value="Crédito""
style="background-color: #fff;">Crédito</option>
<option value="Parcela""
style="background-color: #fff;">Parcela</option>
</select><br/>
<input name="valorcon" type="text" id="valorcon" class="contat3" placeholder="Digite o valor" maxlength="1000" /><br/>
<input name="nomecon" type="text" id="nomecon" class="contat3" placeholder="Nome" maxlength="1000" /><br/>
<input name="telefone" type="text"
onkeypress="Mascara('TEL',this,event);"
type="text" id="telefone" class="contat3" placeholder="Telefone" />
<!---
<input name="tel2" type="text" id="tel2" onkeypress="Mascara('TEL',this,event);" /><br/>
--->
<input name="emailcon" type="text" id="emailcon" class="contat3" placeholder="E-mail" maxlength="1000" /><br/>
<input name="cidadecon" type="text" id="cidadecon" class="contat3" placeholder="Cidade" maxlength="1000" />
<br/><br/><br/>
<a id="enviar-form" class="button solid-color" href="#">Enviar</a>
<input type="submit" id="enviar-form-btn" style="display: none;" />
</div>
</form>
In the.php simulator you will get the data, process the data and mount the screen you need.
– Glenys Mitchell
Hi @Glenysmitchell, I didn’t get it very well.
– Alexandre Santos
all form data is sent to the simulator page.php. There you receive this data and based on what was typed mounts the screen.
– Glenys Mitchell
@Glenysmitchell And how do I make so that when the visitor chooses the product option, appear the table referring to it?
– Alexandre Santos
Form with database: If you want to do it on one screen, you will have to use ajax, or jquery post/get to do it.
– Glenys Mitchell
Form without database: The objects to be loaded must already exist on the screen, but hidden, and only when the user chooses this option, should appear the portion of the screen he wants to display. Which of the two?
– Glenys Mitchell
@Glenysmitchell Can you provide me with an example code?
– Alexandre Santos
I’ll put together an answer, a moment.
– Glenys Mitchell
All right, @Glenysmitchell. I’m on hold!
– Alexandre Santos
Your site has jquery?
– Glenys Mitchell