Jump to content

coolpriya073

Members
  • Posts

    10
  • Joined

  • Last visited

Everything posted by coolpriya073

  1. Sorry for that, i did it because it also has XML. Really Sorry. What i was trying to do is read the values of Status and Redirect URL is Response $Response = <Serivce> <Application> <Status>Yes</Status> <RedirectURL>http://www.google.com?test=abc&xyz=123</RedirectURL> </Application> </Serivce> But when i try to do it using $xmlDoc = new DOMDocument(); $xmlDoc-­>loadXML($Response); $x = $xmlDoc-­>getElementsByTagName("Serivce"); $results = array(); foreach($x as $item) { $res = array(); if($item->childNodes->length) { foreach($item‐>childNodes as $i) { echo "Node Name - ".$i->nodeName."<br>"; echo "Node Value - ".$i->nodeValue."<br>"; $res[$i->nodeName] = $i->nodeValue; } } $results[] = $res; } var_dump($results); After running this code i was getting array empty If there was only 1 child nodes it gives correct output. But when there is Nested Child Nodes it become a problem. Please advice me how to solve this
  2. hi, I want help in reading xml child nodes. Please help me guys. <Serivce> <Application> <Status>Yes</Status> <RedirectURL>http://www.google.com?test=abc&xyz=123</RedirectURL> </Application> </Serivce> Thanks in Advance
  3. cant figure out anything from this. do 1 thing. set border to you main div and inner divs, left and right(which is coming down after the last post) you will be able to identify the difference. and check whether its in all the browser or some specific..there can be a difference because of margin and padding also..
  4. margin auto and reset ur style at the beggining..thats a big problem with ie
  5. i was having the same problem..thnx a ton
  6. hi, you can place the link anywhere in body section where you think it is right, either do it in footer section or some internal page.
  7. hi, what you can do is just create a separate folder for members and admin..and separate table for both login, keep it clean for long run member will use the session as session_start(); // If the session vars aren't set, try to set them with a cookie if (!isset($_SESSION['user_id'])) { if (isset($_COOKIE['user_id']) && isset($_COOKIE['username'])) { $_SESSION['user_id'] = $_COOKIE['user_id']; $_SESSION['username'] = $_COOKIE['username']; } } and admin as session_start(); // If the session vars aren't set, try to set them with a cookie if (!isset($_SESSION['admin_id'])) { if (isset($_COOKIE['admin_id']) && isset($_COOKIE['adminuser'])) { $_SESSION['admin_id'] = $_COOKIE['admin_id']; $_SESSION['adminuser'] = $_COOKIE['adminuser']; } } Note: make sure the difference in cookie
  8. msaz87 can you tell us the code which you are using for the form
  9. hi, Reset your styles, commonly referred as CSS Reset or Reset CSS is the process of resetting (or more accurately – setting) the styles of all elements to a baseline value so that you avoid cross-browser differences due to their built-in default style settings. By resetting your styles, you avoid defaulting to the browser’s built-in styles, which differs from browser to browser.
×
×
  • 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.