Jump to content

URL is redirecting wrong?


ask9

Recommended Posts

Hi guys

 

Another basic question.

 

I have this dynamic link when I click it, it redirect to this link below,

http://samplesite.com/adventure/\'google.com\'

 

How do I remove the main site --> samplesite.com redirect only to google.com?

 

I also tried to remove the two slashes using stripslashes() but it won't.

 

By the way here is the stripslashes() codes,

	while ($db_field = mysql_fetch_assoc($result)) {
		$title = $db_field['title'];

		print "Title: " . stripslashes($title) . "<br>";
		print "Description: " . $db_field['description'] . "<br>";
		print "Version: " . $db_field['version'] . "<br>";
		print "Started: " . $db_field['started'] . "<br>";
		print "Finished: " . $db_field['finished'] . "<br><br>";
	}

 

Thanks in advanced.

Link to comment
https://forums.phpfreaks.com/topic/233107-url-is-redirecting-wrong/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.