close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Redirect to Detail after Insert - Works Locally, Not Remotely

Thread began 11/02/2010 1:52 pm by eaefaw380137 | Last modified 11/03/2010 9:57 am by Jason Byrnes | 1656 views | 18 replies |

eaefaw380137

Redirect to Detail after Insert - Works Locally, Not Remotely

Here I am again. Floundering around as usual and looking for help. It really shows how much I have to learn.

My problem will probably have a simple answer for support but to me it is baffling.

MY PROBLEM
Locally, when I insert a New Product, everything writes to the database correctly, and I am redirected to my details.php page with the newly inserted item results showing.

Remotely, after I insert a New Product, everything writes to the database correctly, but the details.php shows "No Records". I would like it to show my newly inserted record as it does Locally.

My Update behaviors work correctly both locally and Remotely. I feel pretty certain that it has something to do with Sessions. That is my biggest challenge area. I can normally work out the rest.

Any help is appreciated. As always, you guys rock!

Sign in to reply to this post

Jason ByrnesWebAssist

the new record id is stored in a session variable, most likely your site has an issue with session management.


use the session test file from the following thread to make sure that session s are working correctly:
showpost.php?p=23826&postcount=2

Sign in to reply to this post

eaefaw380137

Passed Session Test

Jason,
Thanks for the quick response. You must stay busy from the start of your day till you finally get to leave. I see all the Forum posts, and all of your responses. You are truly dedicated and we appreciate it.

TEST RESULTS = POSITIVE
I tested the Session Management and everything tested correctly. Got NULL, then Test, then Test again.

In case you were going to ask for my pages next, I have attached the items_insert.php and items_details.php (in .txt format).

Thank you so much!

Attached Files
items_details.txt
items_insert.txt
Sign in to reply to this post

Jason ByrnesWebAssist

add the following code at line 1 of both pages to turn on error reporting:

php:
<?php

if(!session_id()) session_start();
error_reporting(E_ALL);
ini_set('display_errors','on');
?>




post back any errors that are displayed

Sign in to reply to this post

eaefaw380137

No surprise that there was an error

Warning: Cannot modify header information - headers already sent by (output started at C:\hshome\eaefaw\dcd.websmithinteractive.com\admin\items_insert.php:6) in C:\hshome\eaefaw\dcd.websmithinteractive.com\admin\items_insert.php on line 175

Sign in to reply to this post

eaefaw380137

I tried all I could but have no idea how to correct the error

Warning: Cannot modify header information - headers already sent by (output started at C:\hshome\eaefaw\dcd.websmithinteractive.com\admin \items_insert.php:6) in C:\hshome\eaefaw\dcd.websmithinteractive.com\admin \items_insert.php on line 175

Any ideas are welcome!

Sign in to reply to this post

Jason ByrnesWebAssist

please send a copy of your page in a zip archive so I can examine the code.

Sign in to reply to this post

eaefaw380137

Thanks Jason.

I have attached the files per your request. I really appreciate your efforts.

Attached Files
files.zip
Sign in to reply to this post

Jason ByrnesWebAssist

the error is a result of an extra space at the end of line 5:
"?> "


remove that blank space at the end of the line to correct the error.

Sign in to reply to this post

eaefaw380137

Jason,
Thanks for your patience but I am a bit lost. **Surprise huh?**

Remove space from Line 5 of the items_insert.php page or items_details.php page?

Sorry for being a pain but attached are screen shots from my code view of Dreamweaver that shows line 5 of both pages. (I removed the Session Error code you sent earlier) My line numbers doent seem to correspond with your instructions.

Thanks a million.

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