Jump to content

trace in php


deemurphy

Recommended Posts

I am using a form to get some information,  I can upload the two forms, the build_breakroom is changing because I created the snacktype.php

 

Mybe viewing these two pages can help, after requesting from snacktype and other other options when the build_breakroom comes back up I want the options that were picked shown.

 

Thank you

LadyDee

 

[attachment deleted by admin]

Link to comment
https://forums.phpfreaks.com/topic/144667-trace-in-php/#findComment-759215
Share on other sites

I  am using the following code in about eight different pages, like snacks, food, drinks, coffee, etc:

 

$category_id= $row["category_id"];

$subCategoryid= $row["subCategory_id"];

$subCategoryName= $row["subCategoryName"];

 

I want to pass this information to another script everytime the user goes to it so they know what they have choosen.  Here is the code from it:

 

$category_id = $_POST["category_id"];

 

if(strlen($category_id)>0)

{

foreach ($_POST['category_id'] as  $category_id)

{

if ($category_id == "1")

{

$_SESSION['snack'] = "";

 

later I do:

 

<? if ($cnt != 0) { echo " $cnt Items Selected "; }  else { echo "No Item is Available"; }?></span>

 

I  keep getting no Item is available.

 

Thanks for your assistance.  Sorry about the upload, have not ask for help in a long time.  If it can be removed please do so.

 

Thank you

LadyDee

Link to comment
https://forums.phpfreaks.com/topic/144667-trace-in-php/#findComment-759671
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.