Hi
I've got a form with an input field called 'cluster' and which posts
to another page where $cluster is printed.
The problem is if for instance I put ABCD in the field I get
ABCDcluster=ABCD printed on the next page and not just ABCD which is
what I want.
see http://convoluta.cap.ed.ac.uk/Lumbri...ibasetest1.php
for a demo.
I can use a regex to get rid of the extra text but can anyone tell me
where it's coming from?
Scripts below.
Many thanks for any suggestions.
lumbribasetest1.php
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta name="keywords" content="earthworms, blast, Lumbricus,
pollution">
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<meta name="GENERATOR" content="Mozilla/4.7 [en] (X11; I; Linux
2.2.13-0.9 alpha) [Netscape]">
<title>Lumbribase Search</title>
</head>
<body text="#000000" bgcolor="#E0EEEE" link="#0000EF" vlink="#51188E"
alink="#FF0000">
<center>
<!--#############################################
#### Banner at top of page ####
#############################################-->
<table WIDTH=80% border=0 cellpadding=0 cellspacing=0>
<tr>
<td WIDTH=33%><P><IMG SRC="earthworm.jpg" WIDTH=100%
HEIGHT=112></P></td>
<td WIDTH=34% align=center bgcolor="#556B2F"><font size=6
color=#FFFFFF> LumbriBASE<br>searches</font></td>
<td WIDTH=33%><P><IMG SRC="earthworm.jpg" WIDTH=100%
HEIGHT=112></P></td>
<tr>
</table>
<br>
<!--#############################################
####search by cluster/clone/protein name ####
#############################################-->
<table WIDTH=80% BORDER=0 CELLSPACING=0 CELLPADDING=10
bgcolor="#AADAAA">
<form method="post" action="pg_nametest1.php">
<tr><td align=center><font size=5>Search by sequence
identity</font></td></tr>
<tr><td align=center><i>L. rubellus</i> cluster (e.g. LRC00138) or
<i>C. elegans</i> protein (e.g. CE01234)</td></tr>
<tr><td align=center><input type="text" name="cluster"><input
type="submit" value="Search"></td></tr>
</form>
</table>
</body>
</html>
pg_nametest1.php
<?php
if($cluster) {
print "What you entered in the text field should be between these
stars *$cluster*";
}
else {
print "You didn't enter a cluster name";
}
?>