Searched hours online to no avail.
This should be fairly easy for anyone experience with PHP (aka not me!)
All i'm trying to do is create a text search box and send button.
1. Users will add a keyword and click send.
2. Link to an external website that loads with keyword in the url. eg, Searching for: Paper
action="http:www.domain.com/st=123&129ss=PAPER"
I got as far as (and being a complete PHP noob):
<?php
$keyword = htmlspecialchars($_POST['keyword']);
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<form method="post" id="searchform" action="http://www.domain.com/default.aspx?st=FT&ss=<?php echo 'keyword'; ?>" />
<input type="text" name="keyword" id="se" size="35" onblur="if (this.value == '') {this.value = 'search...';}" onfocus="if (this.value == 'search...') {this.value = '';}" value="search..." class="text" />
<input type="submit" id="searchsubmit" class="submit" value="Send" />
</form>
</body>
</html>
so damn frsutrating despite getting close. With above example, entering and submitting a keyword does direct to the new site, but the echo doesn't show.
Any advice?? Would be appreciated.