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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

redirecting to page with ID in the URL

Thread began 11/06/2016 7:48 am by MagsW | Last modified 11/07/2016 2:25 pm by Ray Borduin | 302 views | 2 replies |

MagsW

redirecting to page with ID in the URL

I have a generic contact form in a shared file which appears on multiple pages on a site. It works fine apart from on one of the pages which is a dynamic page in the format 'people.php?ID=1". On successful submission, the page displays a success message and the redirect is set up as follows:

$GoToPage = "$pageName?sent=true#success"; $RecipArray = array();

I need to retain the ID in this though, so that the page displays properly. I tried this:
$GoToPage = "$pageName?ID=($row_rsPractitioners'[ID'])&sent=true#success"; $RecipArray = array();

and this:

$GoToPage = "$pageName?ID=($_GET'[ID'])&sent=true#success"; $RecipArray = array();

but neither carries the ID into the URL - the result is this:

people.php?ID=(Array%27[ID%27])&sent=true#success

How do I get the page to appear as 'people.php?ID=1&sent=true#success' ?

Furthermore, if I can get that working, how would I include an IF statement around the ID to only show an ID if it exists, so that I can then continue to use the email script in the shared file rather than having a separate one on this page? Thanks!

Sign in to reply to this post

Ray BorduinWebAssist

$GoToPage = "$pageName?ID=" .($row_rsPractitioners'[ID']). "&sent=true#success";

Sign in to reply to this post

MagsW

Perfect, many thanks - and I added an IF statement as well so that I can still have it in a shared file without affecting other pages it's embedded in.

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