![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
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 ') |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
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
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Jun 2001
Posts: 853
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: May 2003
Location: Seattle
Posts: 2,176
|
Fantastic job! Thanks again man!!
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Confirmed User
Industry Role:
Join Date: Jan 2004
Location: Nor'easterland
Posts: 1,914
|
Quote:
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 ?>'> |
|
![]() |
![]() ![]() ![]() ![]() ![]() |