Quantcast
Channel: Topic Tag: MySQL | WordPress.org
Viewing all articles
Browse latest Browse all 5527

gunzbry on "linking my HTML form to a PHP"

$
0
0

Hi guys, I have a form here :

<html>
<head>
    <title>Search</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" type="text/css" href="style.css"/>
</head>
<body>
    <form action="search.php" method="GET">
        <input type="text" name="query" />
        <input type="submit" value="Search" />
    </form>
</body>
</html>

I have the search.php in the webroot and I need the page to call that .php file. How do I do this? If I want to achive this , I have to include the search.php in my same place as my page html right? But wordpress doesnt allow editing of these?

Please suggest how I can allow my form to succesfully execute the Php file and display my search results on the same page

It gives me a 404 - not found page. and the url links to somewhere non existent . Please help =(


Viewing all articles
Browse latest Browse all 5527

Trending Articles