Jump to content

Search the Community

Showing results for tags 'redirection'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (Dreamweaver, Zend, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

Found 2 results

  1. hi guys, i have a problem hope you can help me.. i have a site that uses an iframe to autorefresh the table inside it. i used an <a href> tag to redirect the page, but instead of redirecting the whole page to another site, it only reloads inside the iframe.. here is my code: from my parent page: </div> <Iframe src="tabs/constable.php" width="990" height="600"></Iframe> </div> from my constable.php file inside the iframe: <head> <script type="text/javascript"> function followLink(o) { var a = o.getElementsByTagName('a'); if (a.length > 0) { document.location = a[0].href; } } </script> </head> <table id="table"> <thead> <tr> <th scope="col" class="idnumber">ID Number</th> <th scope="col" class="name">Name</th> <th scope="col" class="gender">Gender</th> <th scope="col" class="timedate">Date of Consultation</th> <th scope="col" class="type">Student/Employee</th> <th scope="col" class="type">annual/walkin</th> </tr></thead><tbody><tr> <tfoot> <tr> <td colspan="6"></td> </tr> </tfoot> <?php $min = 0; include '../init.php'; $quey1="//somequery here"; $result=mysql_query($quey1); mysql_close($connect); $row1 = mysql_num_rows($result); while($row=mysql_fetch_array($result)) { $dd = "../info.php?pid=".$row['idnumbers']."&&nid=".$row['idnurse']."&&type=".$row['type']; echo "<tr><td onclick='followLink(this);'><a href='".$dd."'></a>{$row['idnumbers']}</td> <td onclick='followLink(this);'><a href='".$dd."'></a>{$row['name']}</td> <td onclick='followLink(this);'><a href='".$dd."'></a>{$row['Sex']}</td> <td onclick='followLink(this);'><a href='".$dd."'></a>{$row['date']}</td> <td onclick='followLink(this);'><a href='".$dd."'></a>{$row['Occupation']}</td> <td onclick='followLink(this);'><a href='".$dd."'></a>{$row['type']}</td></tr>"; } echo' </table></br></br>'; include '../init.php'; $quey2="select count(*) from nurse where status = 'notdone'"; $res=mysql_query($quey2); mysql_close($connect); $rowcounter; while($row=mysql_fetch_array($res)) { $rowcounter = $row['count(*)']; } if($rowcounter > 10) { echo '<form action = "next.php" method = "POST">'; echo ' <input type = "image" src="images/Next.png" name = "next" value = "Next">'; echo ' <input type = "hidden" name = "xx" value = "'.$min.'">'; echo ' <input type = "hidden" name = "gg" value = "patientonqueue">'; echo ' <input type = "hidden" name = "num" value = "'.$rowcounter.'">'; echo '</form>'; } $eto = $rowcounter + 10; if($rowcounter >= 10) { echo "<label name = 'dd'> 10 out of ".$rowcounter."</label>"; } ?> hope you guys understand my code and my problem.. thanks in advance!
  2. Guest

    Mobile Redirection

    When trying to view our website from a mobile phone or an iPad, it redirects to another website which does not exist. I can see where the redirection is taking place in the index.php file, but I do not know what I need to remove in order for the redirect to stop. From a mobile device or iPad it should just go to our normal website, www.u-a-s.com, we do not have a mobile version as of yet. I tried a few things, but do not know enough to know what to take out. Can anyone help? Here is the code: ************************ $ua = $_SERVER['HTTP_USER_AGENT']; if ( stristr($ua, "Windows CE") or stristr($ua, "AvantGo") or stristr($ua,"Mazingo") or stristr($ua, "Mobile") or stristr($ua, "T68") or stristr($ua,"Syncalot") or stristr($ua, "Blazer") ) { $DEVICE_TYPE = "MOBILE"; } if (isset($DEVICE_TYPE) and $DEVICE_TYPE=="MOBILE") { header ("Location:http://lahori.org/mydev/universal/mobile/"); exit; } define('WP_USE_THEMES', true); /** Loads the WordPress Environment and Template */ require('./wp-blog-header.php'); ?>
×
×
  • 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.