close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Goto after submit

Thread began 8/24/2021 6:06 am by birdscreen398247 | Last modified 8/24/2021 12:49 pm by Ray Borduin | 204 views | 3 replies |

birdscreen398247

Goto after submit

I have a Page (Page 3) that can be called from either Page 1 or Page 2.

When I hit Submit on Page 3, I want it to return to the Page that called it.

Page 1 is PORC_Admin_Vote_Pending_List.php
Page 2 is PORC_Admin_All_Votes_List.php
Page 3 is PORC_Admin_Vote_Pending_Record.php

How can I capture the page name and use it as the submit GoTo file?

Attached Files
PORC_Admin_All_Votes_List.php
PORC_Admin_Vote_Pending_List.php
PORC_Admin_Vote_Pending_Record.php
Sign in to reply to this post

Ray BorduinWebAssist

You could save the last page name as a session variable on both the possible previous pages and use the session variable to redirect. Just use the same session variable name and whichever page was visited last will be redirected to.

Sign in to reply to this post
Did this help? Tips are appreciated...

birdscreen398247

I set a session variable on pages 1 and 2 and used the Server Behavior "MYsqli Update Record" to link the GoTo file name to the session variable, but it doesn't work.

See the attached files.

Attached Files
PORC_Admin_All_Votes_List.php
PORC_Admin_Vote_Pending_List.php
PORC_Admin_Vote_Pending_Record.php
Sign in to reply to this post

Ray BorduinWebAssist

You should set your session variables like this:


<?php
@session_start();
$_SESSION["gotoname"] = "PORC_Admin_All_Votes_List.php";
@session_commit();
?>

Then on your insert page, the recordsets and insert server behaviors should be above the <!doctype> tag with no blank lines in the code above it.

Sign in to reply to this post
Did this help? Tips are appreciated...

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