close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Search Results in a Dynamic Include Drops Parameter

Thread began 3/10/2012 12:34 pm by Brad Lawryk | Last modified 3/11/2012 11:59 am by Brad Lawryk | 900 views | 3 replies |

Brad Lawryk

Search Results in a Dynamic Include Drops Parameter

Hi guys, I have a search form that when submitted drops the page parameter for displaying the results. It works perfect if I redirect directly to the results page. But the results page needs to be included in the main layout.

Code:

<div id="empsearch" title="Employer Quick Search">

<form action="index.php?page=empquicksearch" method="get" id="clientSearchForm" name="clientSearchForm">
Employer Name:

<input type="text" name="empSearchName" id="empSearchName" />
<input type="submit" name="empSearchButton" id="empSearchButton" value="Submit" class="submit" />
</form>
</div>

See attached for resulting redirect result - notice no page parameter.

Sign in to reply to this post

Ian S

I stand to be correct but I don't think you can pass URL strings in an include.

You would need to write the form values into sessions and then use the DA Search criteria to filter by the session values.

Cheers
Ian

Sign in to reply to this post

Ray BorduinWebAssist

maybe try just adding a hidden form element to pass the page parameter:

<form action="index.php" method="get" id="clientSearchForm" name="clientSearchForm">
Employer Name:
<input type="hidden" name="page" value="empquicksearch" />
<input type="text" name="empSearchName" id="empSearchName" />
<input type="submit" name="empSearchButton" id="empSearchButton" value="Submit" class="submit" />
</form>

Sign in to reply to this post

Brad Lawryk

Thanks Ray! Brilliant idea!

Worked like a charm.

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