• there are two pages in WP.In the first page I want to print a form…sample code is

    <form name=”test” method=”POST” action=”second_page”>
    <input type=”text” name=”age”>
    <input type=”submit” value=”submit”>
    </form>

    now i want to print the value of “age” into the second page..I filled up the action field with pages permalink and used custom templets.
    bt result is “404 not found post”. Is there any other way to pass var?I think its a very simple task and I am going wrong.please help me to find the right way…thanks..

Viewing 1 replies (of 1 total)
  • There is a way to do it using AJAX where instead of passing the variables to another page, the variables are passed to the same page and the content changes via if else statements.

    The link is: http://trevordavis.net/blog/tutorial/wordpress-jquery-contact-form-without-a-plugin/

    If you want the variable to be echoed you might have to modify the code a bit since it has been created to handle contact forms.

    If anybody else knows how or if it is possible to pass variables from forms to the action page, please let me know as well. I have been searching high and low for it and have yet to find an answer.

Viewing 1 replies (of 1 total)
  • The topic ‘how to pass variables into pages’ is closed to new replies.