Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 04-05-2005, 01:09 PM   #1
BoNgHiTtA
Confirmed User
 
Join Date: May 2003
Location: Seattle
Posts: 2,176
Php'rs need help real quick - Will PP you 20 bucks if u help me get this working

Ok, trying to format a URL:

&memid=[$_SESSION["rid"]]&email=" +eml;


When I do this, it doesn't seem to want to pickup rid from our system. Actually I am thinking I have this formatted wrong.

I know I can use this:

<?=htmlspecialchars[$_SESSION["rid"]]?>

But I don't think it works in URLs.

Any suggestions? Ill pp anyone who can help me get it working 20 bucks for the trouble
BoNgHiTtA is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-05-2005, 01:16 PM   #2
onlyreal
Confirmed User
 
Join Date: Jun 2001
Posts: 853
you can not use session in url(as php cannot process session in browsers address bar)

u need to a put like something in to the start of page(page u will go with url)

if(Session[id]hahahaha"bla"){
do this
}

or u need to put session in to a variable and send this variable in url instead of session


hahaha ='= (remove ')

Last edited by onlyreal; 04-05-2005 at 01:19 PM..
onlyreal is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-05-2005, 01:19 PM   #3
BoNgHiTtA
Confirmed User
 
Join Date: May 2003
Location: Seattle
Posts: 2,176
K let me try that and see what comes from it. Whats ur Paypal addy if I can get it working
BoNgHiTtA is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-05-2005, 01:20 PM   #4
onlyreal
Confirmed User
 
Join Date: Jun 2001
Posts: 853
[email protected]

come to my icq 20196017

i will get it work in a second
onlyreal is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-05-2005, 02:20 PM   #5
BoNgHiTtA
Confirmed User
 
Join Date: May 2003
Location: Seattle
Posts: 2,176
Fantastic job! Thanks again man!!
BoNgHiTtA is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-05-2005, 02:20 PM   #6
rickholio
Confirmed User
 
Industry Role:
Join Date: Jan 2004
Location: Nor'easterland
Posts: 1,914
Quote:
Originally Posted by BoNgHiTtA
Ok, trying to format a URL:

&memid=[$_SESSION["rid"]]&email=" +eml;


When I do this, it doesn't seem to want to pickup rid from our system. Actually I am thinking I have this formatted wrong.

I know I can use this:

<?=htmlspecialchars[$_SESSION["rid"]]?>

But I don't think it works in URLs.

Any suggestions? Ill pp anyone who can help me get it working 20 bucks for the trouble
Try something like this:
Code:
<?
// Load up params with whatever parameters you need
  $params[rid] = $_SESSION[id];
  $params[email] = $_SESSION[email];
  $params[whatever] = "whatever";

// Convert the params array into a query string
  $parmstring = '';
  foreach($params as $k => $v) {
    if($parmstring!="") $parmstring .= "&";
    $parmstring .= "$k=".urlencode($v);
  }
?>
<A HREF='http://some.url.com/foo.php?<?= $parmstring ?>'>
HTH.
rickholio is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.