Hello, I'm trying to get a site to give me some free advertising. Here is the line of code I enter into the address bar... http://www.xxxxxxxx.com/members/advertise.php?userid=xxxxx&solostoadd=1&solocount=1 When I type that in it give me 1 solo however when I click to submit my ad it takes me to a blank page. What am I doing wrong? Here is the actual PHP code that I'm trying to work around. <? } while ($line2 = mysql_fetch_array($result2)) { $soloadded = $line2["added"]; if ($soloadded == 0) { $solostoadd = 1; $solocount = $solocount+1; } //end if ($added == 0) else { $solostatstoshow = 1; } // end else } //end while ($line2 = mysql_fetch_array($result2)) if ($solostoadd == 1) { ?><br> <p><b><font color="red">You have <? echo $solocount; ?> solo ad(s) to add. <? $query5 = "SELECT * FROM solos where userid='".$_SESSION[uname]."' and added=1 and sent=0"; $result5 = mysql_query ($query5) or die ("Query failed"); $numrows5 = @ mysql_num_rows($result5); if ($numrows5 == 0) { ?>
if you want get data from url, you NEED use $_GET, maybe you use $_POST what wount show you numbers from link.
neegeris might be right if your register_globals is off, check your register_globals on your phpinfo() page.
I don't own the website so I don't know. Basically what I'm trying to do is get the site to give me a free ad without paying for it. I thought maybe making it "look" like I bought an ad it would allow me to post it. However it doesn't work. It just says I have 1 ad to post but when I go to post it it takes me to a blank page. I'm not sure if there is a line of code I can enter to fake a buy or not.
Dude im not gonna help ya try bug out or exploit a site. If you want advertising do it properly and pay for it.
You're not going to be able to do it cause surley they'd have sessions etc. which you cannot recreate...