Jump to content

Stripped Prefix


bootneck

Recommended Posts

Hi,

 

I'm new here and to php/MySQL.

 

Have searched fairly extensively for a solution for this but so far haven't found one.

 

I'm using MySQL 5.0.61 - PHP 5.0 on XAMPP with global_variables disabled. Searching on MYSQl Fulltext boolean.Script has pagination. 

 

Have an HTML form with lines:-

 

<form action="lookup.php" method="POST">

<INPUT TYPE="text" NAME="kwords" VALUE="" VALUE=""

          SIZE="25" MAX LENGTH="150">

 

Lookup.php has lines:-

if(! isset($kwords)) {

$phrase = $_REQUEST['kwords'];

(doesn't work with $_POST['kwords'])

}

and in pagnation lines such as:-

echo " <a href='{$_SERVER['PHP_SELF']}?kwords=$kwords&pageno=1'>FIRST</a> ";

}

 

The script runs OK with the exception that on searches such as 'apples +oranges' the '+' is stripped put of on page refreshes.

 

I've tried numerous variations on the above but all seem to end up with the '+' being stripped from the called variable (kwords).

 

Any help, such as a pointer to the right page in the manual, would be most appreciated.

 

 

 

.

 

 

 

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/115296-stripped-prefix/
Share on other sites

Archived

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

×
×
  • Create New...

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.