-
Posts
3 -
Joined
-
Last visited
Posts posted by Djagloi
-
-
20 minutes ago, gw1500se said:
The first thing you need to do is remove the deprecated mysql code and replace it with PDO or at least mysqli. That you can even use mysql implies that your version of PHP is long ago obsolete.
Ok, but can you assist with the code I have up there?
-
I have this code:
Quote$result = mysql_query($sql);
echo " <form action='https://test.com/forum/index.php?/search/&q=". $row['record_meta_keywords'] ." &type=cms_records7&search_and_or=and&search_in=titles'> ";
echo " <select name='/search/&q=". $row['record_meta_keywords'] ."
&type=cms_records7&search_and_or=and&search_in=titles'> ";
while ($row = mysql_fetch_array($result)) {
echo "<option value='" . $row['record_meta_keywords'] ."'>" . $row['record_meta_keywords'] ."</option>";
}
echo " </select> ";
echo " <br><br> ";
echo " <input type='submit'> ";
echo " </form> ";
?>The problem is that when I choose an option from the dropdown (in this case Majestic Lanes) and click submit, it sends me to this URL:
I need it to send me to this URL:
I don't know PHP well enough to fix the code myself. Can anyone assist with this please?
Problem with Form URL in PHP Code
in PHP Coding Help
Posted
I did that. The problem is the special characters. I asked for help with the CODE, not the interface.