-
AuthorPosts
-
July 21, 2014 at 10:35 am #293770
Hi Kriesi team…..
i’ve got a question regarding the contact forms included on template… there is any way to post data as a form like this, it means to post data to an url
<form id=”form1″ method=”post” action=”http://domain.com/prm/ws_save_lead.php”>
<div>
<div>
<div style=” color:#666; font-size:14px”>Nombre:</div><input type=”text” value=”” name=”nombre” id=”nombre” required />
</div>
<div>
<div style=” color:#666; font-size:14px”>Teléfono:</div>
<input type=”text” name=”telefono” value=”” id=”telefono” required/>
</div><div>
<div style=” color:#666; font-size:14px”>Email:</div>
<input name=”email” value=”” id=”email” type=”email” required />
<input type=”hidden” name=”ip” value=”<?php $ip = $_SERVER[‘REMOTE_ADDR’]; echo $ip; ?>”>
</div><div id=”check_box”>
<input type=”checkbox” id=”privacidad” value=”S” tabindex=”9″ name=”agree” required>
<label for=”check”>He leído y acepto vuestra política de privacidad</label></div>
<div class=”eform”>
<input type=”submit” name=”button” class=”bot_enviar_formulario” id=”button” value=”” />
</div>
</div>
</form>July 21, 2014 at 2:10 pm #293843Hey Luis!
Thank you for using our theme.
If you are using cross domain action call this might make problems. Check the following article:
http://stackoverflow.com/questions/8497609/html-form-post-cross-domainFor the same domain it should work.
Cheers!
GünterJuly 21, 2014 at 2:54 pm #293873is the same domain…. but my question is about if with contact form included on AVIA ÇFramework if i could instead of a mailto do a post to the url ”http://domain.com/prm/ws_save_lead.php”
with the params / fields of the form
thx in advance
July 22, 2014 at 1:46 pm #294323Any update?
July 22, 2014 at 5:40 pm #294483Hey!
No, the theme contact form can’t post to an external php script. Our contact form sends an ajax request to wordpress and relies on the wp_ajax api to process the data.
Regards,
Peter -
AuthorPosts
- You must be logged in to reply to this topic.