0

I have a form on a page and I want to pass a form inputbox value to another inputbox on another form on another page without using URL variables - is this possible?

They both share the same header page section if that is of any help.

Thanks

Jonathan

2 Answers 2

3

To elaborate on @BoltBait - this is a basic example, using JQuery + the cookie plugin

On the first page

<script type="text/javascript">
    // set the cookie, on click to the next page
    $("#next-page").click(function() {
        $.cookie("INPUTBOX",$("input[name=inputbox]").val());
    });
</script>

And on the next page

<script type="text/javascript">
    // get the cookie, we are now on the next page
    alert($.cookie("INPUTBOX"));
</script>

Hope this helps

Sign up to request clarification or add additional context in comments.

Comments

0

You could do it using a cookie, if both pages are on the same web server.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.