close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Database search dilemma

Thread began 5/05/2013 5:33 am by superpac250441 | Last modified 5/06/2013 11:42 pm by superpac250441 | 199 views | 2 replies |

superpac250441

Database search dilemma

I have 2 search forms which point to the same results page. The problem is that for the same given search criteria, each form produces a different result. Can anyone tell me why?

FORM 1:

<form id="form1" name="form1" method="post" action="search-box-results-page.php">&nbsp;
<input name="Products" type="text" id="Products" value="" /><input name="WADbSearch1" type="image" class="searchbutton" src="imgs/search.png" />
</form>

FORM 2:

<form name="form1" action="search-box-results-page.php" method="post">
<table cellpadding="2" cellspacing="0" border="0">
<tr>
<td align="right"><label for="Products">Keywords</label></td>
<td><input type="text" name="Products" value="" /></td>
</tr>
<tr>
<td align="center" colspan="2"><input type="submit" name="WADbSearch1" value="Submit" /></td>
</tr>
</table>
</form>

Perhaps I am going blind. Any help would be much appreciated

Sign in to reply to this post

Jason ByrnesWebAssist

most likely, the data assist search behavior is set to trigger on the WADbSearch1 submit button.

In one search form this element is submit button, in the other it is an image element type.

An im age element type does not have a value attribute. Instead of passing a value, it passes x and y coordinates of where the mouse clicked it.

the code for triggering a submit button would look like this:

php:
if(isset($_POST["WADbSearch1"])){



to trigger for the image element type would look like this:

php:
if(isset($_POST["WADbSearch1_x"])){




you will need to edit the trigger to use either:

php:
if(isset($_POST["WADbSearch1"]) || isset($_POST["WADbSearch1_x"])){
Sign in to reply to this post

superpac250441

Fantastic thanks Jason. Thank you!

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...