Jump to content

macdumbpling

Members
  • Posts

    9
  • Joined

  • Last visited

About macdumbpling

  • Birthday 09/11/1984

Profile Information

  • Gender
    Not Telling

macdumbpling's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Why didn't that work? [!--quoteo(post=374037:date=May 15 2006, 03:52 PM:name=mb81)--][div class=\'quotetop\']QUOTE(mb81 @ May 15 2006, 03:52 PM) [snapback]374037[/snapback][/div][div class=\'quotemain\'][!--quotec--] OK, I still don't have a good solution to my problem. Anybody else want to ring in? [/quote]
  2. [!--quoteo(post=374029:date=May 15 2006, 03:29 PM:name=thorpe)--][div class=\'quotetop\']QUOTE(thorpe @ May 15 2006, 03:29 PM) [snapback]374029[/snapback][/div][div class=\'quotemain\'][!--quotec--] Very much so. [/quote] Grr...
  3. use foreach() loops to build your menus. You can give the main sections a class characteristic and the subsections different class characteristics (for example, you could write it so the main sections are visible and the subsections are hidden and create a drop-down menu using javascript. or you could just set it up as a list style on the left side of the screen). you have to set up each part of the array the exact same for this script, so: "Home" => array( "root" => "home.php" ) "Products" => array( "root" => "products.php" ) [code] foreach($menu as $mainSection => $subSections){   foreach($subSections as $subSection => $values){     if($subSection == "root"){ // it's the main section's page value       $strMenu .= "<a href=\"$values\">$mainSection</a>";     }else{ // it's another subsection       if(is_array($values)){         foreach($values as $subSubSection => $sssValue){           $strMenu .= "<a href=\"$sssValue\">$subSection</a>";         }       }     }   } } [/code] Okay...I'm done with that....I was doing this on the fly so it might not be entirely correct, but give it a shot and you can change the variable names (I'm not good at naming variables). I really HTH
  4. in one file, you can include both classes, giving them references: [code] require_once('securityclass.php'); require_once('siteclass.php'); $sec = new securityclass; $site = new siteclass; $sec->GetCodeIds($userID); $site->function($site->global_siteclass_variable); [/code] HTH Also. One suggestion. I always use ExampleFunction() or ExampleClass{} and $exampleVariable formatting in my scripts. It's not a requirement by any means, but it certainly makes reading scripts a bit easier. Personal preference, though [img src=\"style_emoticons/[#EMO_DIR#]/smile.gif\" style=\"vertical-align:middle\" emoid=\":smile:\" border=\"0\" alt=\"smile.gif\" /]
  5. My concern is, though, that I will have to open a new browser window to run the page...should it be possible with any programming language to just run the script?
  6. Hi. I have to write an windows application that sits on a server and sends variables to a php web page. I currently am using flash and MDM, but that's far too slow and we're looking for something a little cleaner. Any suggestions would be wonderful! Thank you, Kevin Biesbrock
  7. In you script, you have $_POST['submit'] which is always going to be a boolean (0 or 1) therefore always numeric. You need to change the $_POST['submit'] that equals calc to something else. HTH and makes sense :) Kevin
  8. YAY! YAY! YAY! There was that and then the addslashes() that I needed to add to escape " ' " and now it works wonderfully! Thank you so much, wildteen88!
  9. I currently have a working event calendar that has a javascript popup div when you mouseover the title of an event. A javascript function call includes php variables: [code]ShowInfo('$event[location]<br />$event[date]<br />$event[time] [$event[duration] $event[durLabel]]<br />$event[descrip]')[/code] ....you might notice that this script in itself would not work, it's just an example of passing my php variables into a javascript function). The problem with this is $event['descrip'] is a text box field from a form and can accept line breaks (in windows, the characters \r\n are line breaks, if you're unfamiliar). The problem lies when the html/javascript is sent to the browser and there is a line break in the $event['descrip'] variable. The code will show up like this: [code]1 | ShowInfo('1st Floor Conference Room<br />2006-07-09<br />9:30 am [30 min]<br />Topics include: 2 | Inventory, Lunch schedules, etc.')[/code] The javascript function is broken by the \r\n line break, causing an error on that event popup. If anybody can point me in the appropriate direction to correct this quark, I'd be most appreciative! I've currently tried utf8_encode and utf8_decode (because I wasn't sure which it would be) and replacing the '\r\n' using str_replace() but that didn't work. I'm out of ideas and I don't even know where to begin, now. Thank you in advance! -Kevin
×
×
  • 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.