close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Changing the return URL when deleting a record

Thread began 5/04/2013 7:02 am by iainmacdonald331081 | Last modified 5/04/2013 7:46 am by iainmacdonald331081 | 490 views | 2 replies

iainmacdonald331081

Changing the Redirect URL when deleting a record

I have an example which is slightly different to the regular situation, where a record would be deleted, and return to the the same page that lists the results.

The page I have is a details page, but the delete button is deleting a record in a joined table. The deletion is working, but I can't get it to redirect to the URL with the Itinerary ID.

So, for example, if the URL is:

http://www.goodsafariguide.net/itinerary_details/index_lodge5.php?ItineraryID=247

I have a look up table that pulls through Lodges that are part of the Itinerary. So I'm trying to get it to:

1. Delete a Lodge associated with the itinerary.
2. Return to the URL for the Itinerary.

By default the redirect URL line is:

$WA_redirectURL = "index_lodge5.php?ItineraryID=".((isset($_POST["WADADeleteRecordID"]))?$_POST["WADADeleteRecordID"]:"") ."";

But the DeleteRecordID is the LodgeID, not the ItineraryID.

So I've been trying to change it, I would have thought it should be something like:

$WA_redirectURL = "index_lodge5.php?ItineraryID=".$row_WADAItinerary_Lodges['ItineraryID'] ."";

But it keeps redirecting to:

http://www.goodsafariguide.net/itinerary_details/index_lodge5.php?ItineraryID=

rather than

http://www.goodsafariguide.net/itinerary_details/index_lodge5.php?ItineraryID=247

Hope that makes sense - I'm sure this must be something simple enough, but I can't for the life of me get it.

I've attached a copy of the page for reference.

Thanks.

Attached Files
index_lodge5.zip

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