err...what javascript the form is HTML?
Try...
<form name="<NAME>" method="get OR post" action="<?php echo $PHP_SELF?>">
Then in your page have a php tag that checks for the presence of $Find (in
your case), e.g.
if ($Find) {
sql = (SELECT * FROM table WHERE $criteria = "value");
then the rest...
}
-torrent
"George Lioumis" <[EMAIL PROTECTED]> wrote in message
009401c16c3d$e529a0c0$[EMAIL PROTECTED]">news:009401c16c3d$e529a0c0$[EMAIL PROTECTED]...
Good day to all!
Consider the following code:
<FORM ...>
<INPUT type="Text" name="criteria" size="50">
<BR>
<INPUT type="Button" name="Find" value="Find">
</FORM>
I want to get the text that the user writes into the text field into a php
variable to use it in the same page.
I want to use this text as a criteria to search for an entry in my mySQL DB
using a LIKE statement in the select.
Does anyone knows how to do it?
Thanx inadvance.
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]