close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Two Pages Using One Form Return Path

Thread began 3/20/2019 6:46 am by vernon webb | Last modified 3/20/2019 10:33 am by Ray Borduin | 637 views | 9 replies |

vernon webb

Two Pages Using One Form Return Path

I have a form that is being used in two different places on the web site. When the form is submitted I'd like it to return to the results page of the page that opened it which of course are both different. I will give examples below if that helps.

Sign in to reply to this post

Ray BorduinWebAssist

You could pass a url parameter to the page identifying the page that it came from from one page or the other. Then use that to change the redirect page based on the page it came from like:

php:
<?php echo(isset($_GET["media"])?"mediaresults.php":"clientresults.php"); ?>
Sign in to reply to this post
Did this help? Tips are appreciated...

vernon webb

This was something you did for me. How would I make that work with this:

$UpdateGoTo = "".(isset($_GET["from"])?$_GET["from"]:"billing_media_results.php")  ."?return";
Sign in to reply to this post

Ray BorduinWebAssist

Just pass in the url parameter from=pagename.php when you redirect to the page.

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

vernon webb

Sorry sometimes I don't think before I post, that is what exists on the page currently. Being that it is something that you did I don't fully quiet understand what it is currently doing other than bringing me back to the "billing_media_results.php" and retaining the results of the previous search. I'm not sure how to make what you suggested work with with what you already did. Hope that makes more sense.

Sign in to reply to this post

Ray BorduinWebAssist

I think my answer is the same... All you have to do is include the page name in the url when linking to the page to identify the page you want to return to after the update.

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

vernon webb

Sorry to be persistent but I don't know why the $_GET['from'] is in there, there is not URL parameter involved...

Sign in to reply to this post

Ray BorduinWebAssist

$_GET means "check the url"... so if you link to that page with: yourpage.php?from=lastpage.php then when you complete the update it will return you to "lastpage.php"

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

vernon webb

I know what that means, however it was there before I started this. Maybe it was an attempt at this. no worries, I'll figure it out.

Sign in to reply to this post

Ray BorduinWebAssist

Yes. I'm sure I implemented it on at least one other page. But now that it is set up, you can use the existing code by just adding the URL parameter when you want to change the page that it returns to in the same way I did.

Sign in to reply to this post
Did this help? Tips are appreciated...
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...