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

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 MagsW | 478 views | 2 replies


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:


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!

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





Ease of use


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