Jump to content

Archived

This topic is now archived and is closed to further replies.

otuatail

History in text box

Recommended Posts

I don't know if this is possible but I have a web page that displays content from a MySQL database. I have a box that if filled in can narow down the search. I thought it wouls be a good idea to add another box so I could write a complete SQL statment. The problem is the text box is behaving like a browser entry box. as soon as I type SELECT I get an enormous history of all SELECT statments. Can this be prevented as it is very disconcerting.


Desmond.

Share this post


Link to post
Share on other sites
Sorted it out. Simple realy. Why I did not think of it sooner. Use a session variable for the "name"

session_start();
$stamp = time();
if($_SESSION['Entry'] == "")
    $_SESSION['Entry'] = $stamp;

AND

<input type="text" name="<?=$_SESSION['Entry']?>">

Desmond.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.