EdFred
Taxi to Parking
So I have a form that reads from a txt file does a bunch of parsing and displays my inventory.
I have a textbox
where you could search in the datafile
and it will only display lines containing your search string.
This all worked fine and dandy until yesterday when inside the table I added this:
Now the search box doesn't work. Everything else does.
Any ideas?
If anyone wants the link I can PM it.
Code:
<div class="space">
<form method='post' action='inventory.php'>
<table class="table2">
$searchid = $_POST["itemsearch"];
Code:
<td width="225">Search: <input type="text" name="itemsearch" size = "10"></td>
Code:
while (($line = fgetcsv($f)) !== false) {
foreach ($line as $cell) {
$linecount = $linecount + 1;
$qtycount = $linecount;
$data = explode(";",$cell);
$mfgr = $data[0];
$item = $data[1];
$quan = $data[2];
$unit = $data[3];
$pnum = $data[4];
$numcheck = stripos($pnum, $searchid);
$itemcheck = stripos($item, $searchid);
Code:
elseif ($itemcheck !== false or $numcheck !== false) {
lots of echo code in here
}
Code:
echo "<input id=\"q$qtycount\" size=4> <button type=\"button\" onclick=\"javascript:myFrameWrite('$linecount');\">Add</button></td>";
Any ideas?
If anyone wants the link I can PM it.
Last edited: