Multiple GET arguments

Posted by AJ Ravindiran on Stack Overflow See other posts from Stack Overflow or by AJ Ravindiran
Published on 2010-04-08T03:58:16Z Indexed on 2010/04/08 4:03 UTC
Read the original article Hit count: 430

Filed under:
|

Hello,

I've been working with PHP lately, and I came across something I couldn't solve.

So basically, I have a form:

<form method="get">
    <fieldset class="display-options" style="float: left">
    Search by name or ip:
        <input type="text" name="key" value="" />&nbsp;
        <input type="submit" class="button2" value="Search" />
    </fieldset>
</form>

The problem is, I currently already have a argument:

http://example.com/logs.php?type=admin&page=1

How would i pass the given form argument with the already existing arguments? Like so:

http://example.com/logs.php?type=admin&page=1&key=name

Thanks in advance, AJ.

© Stack Overflow or respective owner

Related posts about php

Related posts about arguments