close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Redirect Url Refresh Page

Thread began 9/09/2009 11:28 am by Bknvc1111729 | Last modified 9/21/2009 3:23 pm by Jason Byrnes | 1698 views | 7 replies |

Bknvc1111729

Redirect Url Refresh Page

I am using Inset Multiple Records. I have the redirect url set to redirect back to the same page. I have the Pass Original Querystring set to true so that the brand and name are already displayed in the dropdown lists ready to add more options for that product. I can insert the new data right after being directed to the page from adding the new main product details. But when I try to add more options a second time it will not add them to the database. What am I missing, or does this not work this way? If not what is the best way to refresh my options page and maintain the products brand and name so it is already selected in the dropdown lists?

I have tried building a second page that the options page redirects to and then redirects back but this defeats the purpose of being able to add many options quickly and was still giving me problems.

Thanks for any guidance in advance.

Sign in to reply to this post

Jason ByrnesWebAssist

Most likely, the forms action does not pass the querystring when the form is submitted, so there is no origianl querystring for the redirect to pass.


try changing the forms action to:
action="<?php echo ($_SERVER["PHP_SELF"].(isset($_SERVER["QUERY_STRING"])?"?".htmlentities($_SERVER["QUERY_STRING"]):""));?>"

so that the query string will be part of the form post.

Sign in to reply to this post

Bknvc1111729

When using the Insert Multiple Records the action of the form is blank. I tried using the suggestion but it did not help. I have figured out how to get the product ID, product brand and product name to be displayed in the correct form fields.

My issue is still being able to insert additional options after the first time I hit the submit button. The form works as excpected the first time and the product ID, product brand and product name are again dispalyed in the correct form fields with the correct data. But when I hit the submit button the second time after adding the neccesary fields nothing is submitted to the database. If it is important the optionID is the primary key of the table and is auto incremented so there is no form field for this.

Thanks for any guidance

Sign in to reply to this post

Jason ByrnesWebAssist

Please attach a copy of your page so I can look at the code.

Sign in to reply to this post

Bknvc1111729

I have attached a file for the code of the page I am questioning. If it helps the process goes something like this. I go to the add main product then get redirected to the first page that adds the first set of options which redirects to a page that displays the main product info and all the options. From that page there is a link that directs you to the attached page to insert another set of options. This is the step that does not work.

I know this is a long way around but if I could get the first option insert to allow me to add products to the database after the first insert I would rather stop all the redirects there and just continue adding additional options from there. If I can make this page attached work correctly I can substitute it for the first redirect with no problems.

Much appreciate any advice. Thanks

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

Jason ByrnesWebAssist

I am creating a support ticket so we can look into the issue further.

To view and edit your support ticket, log into your support history:
supporthistory.php

Sign in to reply to this post

Bknvc1111729

I have the code working. I replaced my field names by dropping the underscore I had in the naming structure. Once I did that and updated the array to reflect the changes things started working. Not sure why just know that it did.

Sign in to reply to this post

Jason ByrnesWebAssist

OK, glad to hear it is working.

Sign in to reply to this post

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