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 going wrong

Thread began 4/10/2015 8:28 am by Jamie | Last modified 4/15/2015 4:26 pm by Ray Borduin | 923 views | 11 replies |

Jamie

redirecting going wrong

Hey Ray

Am trying to get the attached page to work on a couple of redirects.

1. On the practice_content_results.php page it uses ?ID=practice_1 (or whatever the id is in the db) to identify which shop it is associated with. On this page, if I click delete or update order the action happens but it doesnt redirect back to the correct ?ID=practice_ on either the update order or delete button -

On the update order it redirects to practice_content_results.php without the identifying slug
On the delete it redirects to practice_content_results.php?ID=

2. on the practice_content_update.php page, the update button inserts the entry into the db but doesnt redirect back to the page in item 1. above. The cancel button also does nothing and should redirect to the page in item 1. abaove

Many thanks

Jamie

Sign in to reply to this post

Ray BorduinWebAssist

On the results page you should probably just add a hidden form element to the page to forward the ID.. add it right before the </form> tag on line 591 like:

php:
<input type="hidden" name="ID" id="ResultsID" value="<?php echo($_GET['ID']); ?>" />



Then on the update page do the same thing, but set the value from the recordset like:

php:
<input type="hidden" name="ID" id="ResultsID" value="<?php echo($row_WADApractice_contents['PracticeContentPageID']); ?>" />



Put that one on or near line 295 just before the </form> tag as well.

Sign in to reply to this post

Jamie

Thanks Ray.

On the results page the delete now works as expected but the update order button there is no change

On the update page, clicking update it hasnt changed what is happening

Sign in to reply to this post

Ray BorduinWebAssist

Looks like it would work to me... please send a current copy of the update page and I'll see if I can spot the problem.

Sign in to reply to this post

Jamie

here you go. have attached both

Sign in to reply to this post

jon211112

Looks like there is an extra dollar sign in the hidden form element value... it should be:

<?php echo($row_WADApractice_contents['PracticeContentPageID']); ?>

Sign in to reply to this post

Jamie

aha thanks Jon. thats got the _update page working, just need to work out the results page now...

Sign in to reply to this post

Jamie

still struggling to get the update order function on the attached page to redirect back to itself with the right id in the url

Sign in to reply to this post

Ray BorduinWebAssist

Do you mean Delete? There is no update functionality on this page? Maybe you sent the wrong page?

Sign in to reply to this post

Jamie

No. It's updating the order of the DB results

Sign in to reply to this post
loading

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