Ford, Mike               [LSS] wrote...

> ...But why would they even see that in the first place????  If I want them
> to click on a button to do something, I simply make it part of a <FORM METHOD=
> "POST"> and the value gets fed to my script via $_POST without the user seeing
> it in the URL.  Why would I ever want to make it more complex than this?

Well, only because it requires JavaScript (which I'm still trying to decide
whether I can do without, but I think I'm going to need it).  Here's what I
was using:

Form:

    <form method="post" action="http://domain.com/"; name="the_form">
        <input type="hidden" name="foo" value="DUMMY">
    </form>

Link:

    <a href="http://coremessaging.com/";
        onClick="document.the_form.foo.value='5';
        document.the_form.submit();">Next</a>

> As I say, I think I must have a fundamental misunderstanding of what you're
> trying to do :(.

It's simpler than you're thinking.  This method just allows you to use GET
variables instead of POST variables, but without the GET drawback of the
user seeing what you're sending in the address bar.

-- Charles Wiltgen


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to