close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

DataAssist Search

Thread began 8/08/2012 8:19 am by Suggs | Last modified 8/08/2012 9:18 am by Suggs | 817 views | 2 replies |

Suggs

DataAssist Search

Hi Folks,

a bit of advice please.

I have a page that is dynamically driven with a recordset and has DataAssist Search on it as well

The issue im having is when i do a search from the search form, in order to return back the search results, it clears the dynamic information needed to display the page.

For example, the page is page1.php?CustomerID=1

When I do a search on the criteria, it clears the ?CustomerID=1 from the URL and replaces it with the?S_Search1=&S_Search2&Search.x=55&Search.y=14 hence removing the information needed on page.

Is there a way to ensure I can keep the dynamic information needed in the URL and tag the search query on to it at the end, starting with &S_Search1=&S_Search2&Search.x=55&Search.y=14 instead of ?S_Search1=&S_Search2&Search.x=55&Search.y=14 or appending the dynamic information i need at the end of the search query eg: page1.php??S_Search1=&S_Search2&Search.x=55&Search.y=14&CustomerID=1

(The URL and search fields are just examples)

Cheers

Sign in to reply to this post

Jason ByrnesWebAssist

Add a hidden form element to capture the URL variable and pass it with the form:

php:
<input type="hidden" name="CustomerID" id="CustomerID" value="<?php echo(isset($_GET['CustomerID'])?$_GET['CustomerID']:""); ?>" />




since the form uses the GET method, It takes over the URL Querystring. on form data can be passed in querystring with a form that uses the GET method. Adding a form element to capture the querystring that is passed in will allow you to pass it back out again.

Sign in to reply to this post

Suggs

Awesome,

That did the trick

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...