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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Trim Request.QueryString

Thread began 9/21/2009 12:09 am by fred306789 | Last modified 9/24/2009 1:29 pm by Jimmy Wu | 3294 views | 7 replies |

fred306789

Trim Request.QueryString

Hi there,
I need to insert a new record into a database and I am using the WA-DA "Insert Record Wizard. I am not using a form and using a post page. Wen I am done with the wizard the database gets updated with the following text: "Trim Request.QueryString("Last_Name")

The database should have had a new record stating something like this:
Table column [Last_name] with a value of "Fred" and not the literal text of :Trim Request.QueryString"

Sign in to reply to this post

Jimmy Wu

Try running the insert and checking what gets inserted into your database. That code should be what inserts the dynamic name field into the database for you.

How are you inputting the binding to the variable? Is it by clicking on the lightning bolt symbol next to the value input box and selecting the variable you want it bound to?

Sign in to reply to this post

fred306789

Thank you

Hi there,
I am using the "WA" Wizard and I am manually typing in the Trim(cStr(Request.Form("fields_email"))).

If I use the Lightning bold then the only thing I get is the database fields and "server" components. Their is no listing for Request.form or request.querystring.

There should be an option if one would like to use querystring or request.form functions. I do not know if this is available in the Data Assist software however if you have a form post on 1 web page and you would like to have code generated for the "DO" page ( the processing web page ) Data Assist should be able to generate these web pages for you. Especially for inserting data into a database ( via a record set ).

Thanks again for your help.

Sign in to reply to this post

Jimmy Wu

You will have to add the form or querystring bindings on the bindings panel that is built into Dreamweaver. After you do this, you can use the lightning bolt to bind the variables to the DataAssist insert values.

Sign in to reply to this post

fred306789

Thanks again

Thanks again for your help, I seem to not understand this. I thought that I have tried thiat prior and that did not work, Is there a tutorial on this? Or, is there a book on this which I can purchase>

Thanks
Fred

Sign in to reply to this post

Jimmy Wu

There might be an issue with the QueryString Binding wizard, so you can also use the Dreamweaver built in URL Variable binding to get values from your querystring. Sorry for the inconvenience.

Sign in to reply to this post

fred306789

Thak you

This worked, thanks

Sign in to reply to this post

Jimmy Wu

Glad to hear it, if there are any other issues, feel free to make a new thread.

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