Link to home
Start Free TrialLog in
Avatar of Ernesto
ErnestoFlag for Mexico

asked on

invisible recaptcha

Don get recaptcha

i have this form running good

  <form  method="post" action="contact.asp"> 
                       
                        <b>Envíenos un mensaje</b> <span></span>
                        <input  type="text" name="fname" id="fname" required placeholder="Nombre">
                       <input type="email"  name="email" id="email" required placeholder="Dirección de Email">
                      <input type="text" name="telefono" id="telefono" required placeholder="Teléfono">
                      <select name="Consultorio" type="text" id="consultorio">
                        <option>Elija Consultorio...</option>
                        <option>Querétaro</option>
                        <option>San Miguel</option>
                    </select>
                    <!--<textarea name="message" id="message" placeholder="Escriba aquí su mensaje..." rows="10" cols="30"> </textarea>-->
                    <textarea name="message" id="message" rows="4" cols="50" required placeholder="Escriba aquí su mensaje..."></textarea>
                    <input type="submit" name="send" id="send"  value="Enviar Mensaje">
                    </form>

Open in new window


then i need to insert this

  <button class="g-recaptcha"
                                data-sitekey="6Lccr3wUAAAAAsdssasacLfhRgG1N9q49kVmVYZpOeQ"
                                data-callback="YourOnSubmitFn" type="submit" name="send"  id="send"  value="Enviar Mensaje">
                           Enviar Mensaje
                        </button>

Open in new window


where to insert?
My form do not work if i put button tag, its working  whit   <input type="submit"

Please you experts!
Avatar of Zakaria Acharki
Zakaria Acharki
Flag of Morocco image

The button with `type="submit"` should behave just like the input `type="submit"` have you tried to just replace the input with the button?

<form  method="post" action="contact.asp"> 
	<b>Envíenos un mensaje</b> <span></span>
	<input  type="text" name="fname" id="fname" required placeholder="Nombre">
	<input type="email"  name="email" id="email" required placeholder="Dirección de Email">
	<input type="text" name="telefono" id="telefono" required placeholder="Teléfono">
	<select name="Consultorio" type="text" id="consultorio">
		<option>Elija Consultorio...</option>
		<option>Querétaro</option>
		<option>San Miguel</option>
	</select>
	<!--<textarea name="message" id="message" placeholder="Escriba aquí su mensaje..." rows="10" cols="30"> </textarea>-->
	<textarea name="message" id="message" rows="4" cols="50" required placeholder="Escriba aquí su mensaje..."></textarea>
	
	<button class="g-recaptcha" data-sitekey="6Lccr3wUAAAAAsdssasacLfhRgG1N9q49kVmVYZpOeQ"
	data-callback="YourOnSubmitFn" type="submit" name="send"  id="send"  value="Enviar Mensaje">
	Enviar Mensaje</button>
</form>	

Open in new window


Do you have any event attached to `input#send` in your JS code?
Avatar of Ernesto

ASKER

i do that but do not launch my  action="contact.asp">

do nothing
regards
ASKER CERTIFIED SOLUTION
Avatar of Zakaria Acharki
Zakaria Acharki
Flag of Morocco image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Ernesto

ASKER

dont get nothing at all!
Avatar of Ernesto

ASKER

tsm!
think i got it!
regards for your time!
Good job Ernesto, glad I could help.