simzam Posted December 29, 2010 Share Posted December 29, 2010 my problem is when i click on hyperlink it start copying it self insertrow=yes in address bar how to tackle this $httpquery = "{$_SERVER['PHP_SELF']}?{$_SERVER['QUERY_STRING']}&insertrow=yes" ; <a href='{$httpquery}' >New</a> <br> if (isset($_GET['insertrow'])) { echo "<br> {$_GET['insertrow']} "; } Quote Link to comment Share on other sites More sharing options...
simzam Posted December 29, 2010 Author Share Posted December 29, 2010 solved ! $httpquery = $_SERVER['PHP_SELF'].'?'.$_SERVER['QUERY_STRING']."insertrow=true" ; if ((isset($_GET['insertrow'])) &&($_GET['insertrow']=="true")){ list($httpquery) = explode('insertrow=true', $httpquery); $httpquery = $httpquery."insertrow=true" ; } Quote Link to comment Share on other sites More sharing options...
simzam Posted December 30, 2010 Author Share Posted December 30, 2010 kindly tell if i want to explode multiple thing then how to do that this explode insertrow=true and i wanted explode this aswell &divid=div2 if ((isset($_GET['insertrow'])) &&($_GET['insertrow']=="true")){ list($httpquery) = explode('insertrow=true', $httpquery); $httpquery = $httpquery."insertrow=true" ; } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.