close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Redirect not working after record update form submitted

Thread began 6/12/2015 8:57 am by anonymous | Last modified 6/01/2023 1:18 pm by Ray Borduin | 3676 views | 11 replies |

anonymous

Redirect not working after record update form submitted

Redirect on record submit not working. Seems to be a problem with the $UpdateGoTo or the rel2abs function. This works on insert and delete but not on update???? Any ideas?

The problem appears to be library.php does not exsist in the webassist folder which is causing this function not to work:
if (function_exists("rel2abs")) $DeleteGoTo = $DeleteGoTo?rel2abs($DeleteGoTo,dirname(__FILE__)):"";
$DeleteQuery->redirect($DeleteGoTo);
}
?>
In researching online it looks as if the function rel2abs is supposed to be in the library.php file installed in this path "'webassist/framework/library.php'". My webassist folder does not have a framework folder or a library.php file. Can you send me this file or provide a location to download it?

Sign in to reply to this post

Ray BorduinWebAssist

Do you have a copy of the page I can look at. It could be something as simple as a blank line of code before the redirect.

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

Andrew

Failure of GoTo on completion of Update

I too have a similar problem.

I'm fairly certain the command did work but it has now stopped.

I attach text from page

Thanks

Andrew

Sign in to reply to this post

Andrew

Your blank lines of code in the php before the redirect would prevent it from working. Remove the space between the php tags and the redirect should start working.

Sign in to reply to this post

Ray BorduinWebAssist

That is not the issue. That script checks to see if that function exists and if it doesn't the code is skipped.

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

anonymous

Redirect not working

The code is in the private message.

Sign in to reply to this post

Ray BorduinWebAssist

Please attach the page instead of using copy/paste so that I can open it more easily when looking at your code.

Your redirects aren't working because of the spaces in your code.... any time you have:

?>

<?php

it needs to be:
?>
<?php

blank lines of code prevent redirects from working in php.

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

anonymous

THANK YOU.

Problem solved.

Sign in to reply to this post

anonymous

Same Issue

After updating to php 8.*, the updategoto won't function. The form updates just fine, but the page just refreshes instead of going to the UpdateGoTo variable. Any thoughts?

Sign in to reply to this post

Ray BorduinWebAssist

Probably a blank line of code or warning on the page. I'd need to see the page and have a url probably to say for sure.

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