[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
[mv] Search Interaction Error if no record found
****** message to minivend-users from "Andy Cheng" <aylcheng@hotmail.com> ******
Hi,
I'm using Minivend 4.04 on a Linux box, I use text files as DB.
I wrote a search function which works perfect if record(s) is found,
but there are problem when no record match!!
For example, if the content of the search field in the table is
"Something", when I search for "some" or even "someth" etc, the
program can jump to the [no-match] section and goes fine. However, if
I search for, say, "aaa" or "xyz" or what so ever, i.e. if I search
anything which is NOT a sub-string of the search field, an
"Interaction Error" result same as below:
"Something has gone wrong, and we did not receive the response we
expected from your browser. There was the following problem:
No action passed for processing"
Can anybody help me please? Below is the coding of my search result
page:
============ Program starts here (search page) ===============
<html>
<head>
<title>__COMPANY__</title>
</head>
<body __BODY__>
<body>
<center>
<form action="[process-target]" method=post>
<input type="text" size="25" name="mv_searchspec">
<input type="hidden" name="mv_search_field" value="description">
<input type="hidden" name="mv_doit" value="search">
<input type="submit" name="mv_todo" value="Search">
</form>
</center>
</body>
</html>
========== Program ends here (search page) ===================
============ Program starts here (result page) ===============
<html>
<head>
<title>__COMPANY__</title>
</head>
<body __BODY__>
[search-region send=1]
[if value mv_search_match_count > 1]
<i>[value mv_search_match_count] Items found</i><p>
[/if]
<table border=0 width=50%>
[search-list]
<tr>
<td><b>Name:</b></td>
<td><b>[item-field first_name]</b></td>
</tr>
[/search-list]
[no-match]
<tr>
<td><b>Sorry, No match result.</b><p>
<font __WARNMSG__>Please click back to search again.</font></td>
</tr>
[/no-match]
</table>
[/search-region]
</body>
</html>
========== Program ends here (result page) ==================
Thanks very much.
Andy
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list