Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Tabbed Panels and PHP Dynamic Data

Guest
Nov 16, 2009 Nov 16, 2009

Copy link to clipboard

Copied

HEllo all,

I have a page that has a tabbed panel that allows people to purchase lunches.

Everything on first tab runs great. However, when you add an item from the second panel, it simply takes you to the first panel.

I'm pulling my hair out....can anyone please take a look and let me know if you have any ideas?

http://www.teacherslunchbox.com/ourlunches2.php

Most of the data is populated dynamically via PHP, so if the source doesn't explain things, I can post up more code if needed. I'm hoping I stumbled on a wierd behavior with Spry Tabbed Panels that someone knows the answer to.

Thanks....

Rich

TOPICS
Server side applications

Views

640
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Nov 16, 2009 Nov 16, 2009

Copy link to clipboard

Copied

Hello,

I just viewed the page and clicked the second tab and saw that the dates all changed accordingly. What else should change?

And aside from making me hungry, it looks like you've got a nice site on your hands. I'm in limbo as well, so though I may not be able to offer much help, I do know your pain.

Cheers,

wordman

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Nov 17, 2009 Nov 17, 2009

Copy link to clipboard

Copied

Hello!!

Thanks....this site is for my wife as well, so I have added "nag" factor involved in it.... hahahaha

Try adding something to the cart, you'll see it takes you to the first tab instead of adding to the cart like items on the first page do...

I have it up and funcitonal without using tabs, but the tabs allow it to be better organized so I'd like to figure this out.

Driving me nuts...and you're right, it does make you hungry doesn't it? hahaha

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Nov 17, 2009 Nov 17, 2009

Copy link to clipboard

Copied

Ok, this seems to be a problem when you submit a form on a tabbed panel when the panel is not the first panel.

I set the default panel to the second one to see if the issue would "reverse" but it didn't. I still get sent back to the first panel.

Admins, I think this belongs in the Spry discussion now, if you can move.

The form action on all forms on both tabs is the same:

<form name="teacherslunchbox_3_ATC_0" method="POST" action="<?php echo $_SERVER["PHP_SELF"]; ?><?php echo (isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] != "")?"?".$_SERVER["QUERY_STRING"]:""; ?>">

Which basically just redirects to itself...where a function adds it to the cart then directs again to the cart page itself.

Each form represents a separate item in a food menu. All items on first tab get added to cart properly, all items on second tab do not get added, and the page simply redirects to the first tab.

Any help would be appreciated.

Rich

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Nov 17, 2009 Nov 17, 2009

Copy link to clipboard

Copied

LATEST

Ok, it seems when a form is submitted from a tabbed panel that is a panel other than the first panel, and you are posting to yourself, you cannot see the posted data...

So when I go to read the info to process a SQL Query, all my parameters are blank since they come from the posted data.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines