otuatail Posted August 24, 2006 Share Posted August 24, 2006 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. Link to comment https://forums.phpfreaks.com/topic/18524-history-in-text-box/ Share on other sites More sharing options...
otuatail Posted August 24, 2006 Author Share Posted August 24, 2006 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. Link to comment https://forums.phpfreaks.com/topic/18524-history-in-text-box/#findComment-79791 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.