bcos on coming back to ur site the same function that assigns the referrer overrides it. so i ll suggest u wrap it in an if statement
[code]
if($_SERVER['HTTP_REFERER'] != 'mydomain.com') {
$_SESSION['origURL'] = $_SERVER['HTTP_REFERER'];
}
hope this is useful
User Profile
Collapse
-
onselect of the answer is the form submitted if so u can collect the option selected to a table that relates questions to option the user selected before u load the new questionLeave a comment:
-
freefony replied to using Select tag to populate dynamic list - but how to make those list items links?in PHPi suggest AJAX i ve used it several times for stuffs like that gives u double advantage loads faster and works for uLeave a comment:
-
freefony replied to Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRINGin PHPjohny is right and i also think u re using ur quotes wrongly u used a single quote to open the action and then inside again u re using it in $_GET[] to php thats like close quote open new quote why dont u remove the outter quotes i.e action=hello.ph pquestion=3&sco re=$_GET['score''Leave a comment:
-
thanks YarrofDoom i got it working i removed the try,catch block and it works just fine i dont know why a try block should stop autoloader from calling the classLeave a comment:
-
autoload does not call class
dir/to/myclass.phpCode:function __autoload($class){ include(trim(str_replace('_','/',$class)).'.php'; if(class_exist){ echo 'my class exists\n'; } throw new Exception('class cannot be loaded'); } try{ new dir_to_myclass(); }catch(exception $e){ echo $e->getmessage(); }
...Code:echo "here<br/>";
-
Am using apache 2.2.11 and just discovered that in my httpd config the AccessFileName was not there i copied from internet and pasted there but still not workingLeave a comment:
-
module rewrite loaded but not redirecting
REALLY need help with rewriting urls with htaccess. am assuring u that i ve done almost all i could i ve even copied a codes directly form tutorials.
my phpinfo says mod_rewrite is loaded and here is my htaccess file
...Code:# Start the engine. Vroooom. RewriteEngine On # This resolves paths to the current directory. (You may or may not need this). RewriteBase / # And the rule.
-
programming POS LCD display to php
am working on a POS system, i have been able to get data from barcode readers but i need to know if its possible to control what is displayed in the customer pole display with php script are there any resources online i could read? -
accessing value of a constant from another page
hi am going thru a joomla script and they are accessing a constant without re-defining it or including the file where it was originally define. the first line of codes on the script is
how is this possibleCode:defined('_JEXEC') or die('restricted access'); -
that missed me but its not the problem. the problem is, in the browser onmouseover event for the first tab moves the second and third tabs out of the <div> below the displayed submenusLeave a comment:
-
vertical drop down works for only one tab
am trying to create vertical drop down but it only works well for the first tab.
the HTML
...Code:<div id="wraper"> <ul class="tabs"> <li> <ul id="tab_ul"> <li><a href=# onmouseover="javascript:showlayer('ul1')">HOME</a></li> <ul id="ul1" class="subtab_ul1"> -
freefony started a topic Scripts working fine on my machine but error: object required , on older desktopin JavascriptScripts working fine on my machine but error: object required , on older desktop
i built a shopping software for a customer its working perfectly on my system but when i transferred to my customer's old desktop system this script throws error "object required" i tried Flock browser no error but no output here is my script below
...Code:if (req.status==200) { xmlResponse = req.responseXML; xmlElement = xmlResponse.documentElement; //alert( -
Sorry i ve to use this means but its related to my problem
my form is submited even if my onsubmit function returns false
for example
...Code:function validdata(){ alert('no success'); return false; } <form method='post' action='somefile.php' onsubmit='validdata();'> <input type='text /> <input type='submit'/> </form>Leave a comment:
-
Sorry i ve to use this means but its related to my problem
my form is submited even if my onsubmit function returns false
for example
...Code:function validdata(){ alert('no success'); return false; } <form method='post' action='somefile.php' onsubmit='validdata();'> <input type='text /> <input type='submit'/> </form>Leave a comment:
-
-
GD library not displaying image
am trying to use GD library it shows an empty img box on the browser showing that the imagecreate function and the http header are working but the img is empty showing no other function is working i ve tried on my friends computer and it worked so my codes are right but am guess its something with my configuration i need help i ve checked phpinfo() and my setting seems to be ok compared with what i see on the internet
GD Support ... -
multiple framset referencing
i ve got this frameset
...Code:<frameset rows="*" cols="310,*" frameborder="no" border="0" framespacing="0"> <frame src="input.php" name="leftFrame" scrolling="No" noresize="noresize" id="leftFrame" title="leftFrame" /> <frameset rows="91,*" cols="*" framespacing="0" frameborder="no"
-
even with the toString function above javascript still sees my php_array as just on element of the list array what can i do to solve that problem?Leave a comment:
-
Ok guys! i got working
...Code:<?php $qry="select * from stock"; $rst=mysql_query($qry) or die("Error in Query.".$qry." ".mysql_error()); while($row=mysql_fetch_assoc($rst)){ $item=$row['item']; $list[$item]=$row['price']; } ?> <script type="text/javascript" language="javascript"> var list=new Array('<?php echo json_encode($list);Leave a comment:
No activity results to display
Show More
Leave a comment: