PDA

View Full Version : I cant bind a form data


rexxy003313443
04-09-2010, 05:00 AM
Greetings. I cant bind form data. When i add the page that contains the form its brings me others forms within the same page but not the search form that i will work on with BOSS. This is the search form:

<form method="post" id="searchform" action="results.php">
<div class="search"><label>
<input type="text" class="box" id="searchbox"/>
<button type="submit" class="btn" title="Search" id="searchbtn">Search</button>
</label>
</div>
</form>

What im doing wrong?? thanks.

other two forms:

<form class="clearfix" action="" method="post">
<h1>e-Chempax</h1>
<p>
<label class="grey" for="logchempax">Username:</label>
<input class="field" type="text" name="userID" id="userID" value="" size="23" />
<label class="grey" for="pwd">Password:</label>
<input class="field" type="password" name="password" id="password" size="23" />
</p>
<div class="clear"></div>
<p>
<input type="submit" name="submit" value="Login" class="bt_register" />
</p>
</form>

<form action="#" method="post">
<h1>Outlook Web Access</h1>
<p>
<label class="grey" for="logowa">Username:</label>
<input class="field" type="text" name="logowa" id="logowa" value="" size="23" />
<label class="grey" for="pwd">Password:</label>
<input class="field" type="password" name="pwd" id="pwd" size="23" />
</p>
<div class="clear"></div>
<p>
<input type="submit" name="submit" value="Login" class="bt_register" />
</p>
</form>

Jason Byrnes
04-09-2010, 01:50 PM
the elements in your first form are not named.

try using this form code instead:
<form method="post" id="searchform" action="results.php">
<div class="search">
<input type="text" class="box" id="searchbox" name="searchbox" />
<input type="submit" class="btn" title="Search" id="searchbtn" name="searchbtn" value="Search" />
</label>
</div>
</form>