close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

$WA_redirectURL - proper syntax

Thread began 1/09/2013 12:39 pm by paulshoe379536 | Last modified 1/09/2013 2:21 pm by paulshoe379536 | 940 views | 4 replies |

paulshoe379536

$WA_redirectURL - proper syntax

Server Behavior - WA DataAssist Update (using Data Bridge)

What is the proper syntax for this expression?

$WA_redirectURL = "activity_groups_results.php?group_id=".$_SESSION['group_id']."";

When I use the above expression and attempt to edit the server behavior, I get this Dreamweaver error message:
"It appears that one of your server-side values is improperly coded.
Please check this interface for inconsistencies."

If I remove -- .$_SESSION['group_id']."" -- from the line, the error message does not appear.

Sign in to reply to this post

Jason ByrnesWebAssist

in the update record behavior, set the redirect URL using the following code:

php:
activity_groups_results.php?group_id=<?php echo("$_SESSION['group_id']); ?>




this will generate the proper syntax.

Sign in to reply to this post

paulshoe379536

help with syntax error

I may not of understood you correctly. I opened the edit dialog for the update record server behavior and pasted your expression:

-- activity_groups_results.php?group_id=<?php echo("$_SESSION['group_id']); ?> --

into "After Update" - Go to (optional):

After doing this, my Update Record behavior disappeared and I had multiple errors in the code though out the balance of the page. My redirect expression looks like this:

-- $WA_redirectURL = "activity_groups_results.php?group_id=".("$_SESSION['group_id']) .""; --

Did I put this in the correct location or should I have pasted it directly in the code?

Sign in to reply to this post

Jason ByrnesWebAssist

you put it in the right place, but i gave you bad redirect code, sorry about that.

the correct code is:

php:
activity_groups_results.php?group_id=<?php echo($_SESSION['group_id']); ?>
Sign in to reply to this post

paulshoe379536

works much better!

thank you Jason...

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