jeudi 31 mars 2016

Post wordpress search result to Ruby on rails application

I am not a developer, i just install, optimize and maintain wordpress sites. So we've got a client who wants to have a site where the front end is powered by wordpress and the backend is powered by ruby on rails.

I've finished building the front end site with wordpress and our developers did their jobs in ROR.

Now my problem is i have a search box on the home page where a user inputs his address and the address gets validated by smartystreets.

All i have to do now is post the validated info to a registration form in the ruby on rails app.

Below is the code of wordpress search form.

<form method="post" action=""><input type="text" name="street" placeholder="<?php echo esc_attr($placeholder);?>" class="search"  value="<?php echo the_search_query(); ?>"/>
<input type="submit" id="searchsubmit" value="">
</form>

Guys please help me out

Aucun commentaire:

Enregistrer un commentaire