Jump to content

[SOLVED] removing characters from a variable


cheesycarrion

Recommended Posts

Essentially what I want to do is remove every dot and slash ("." and "/") from a get variable.

 

For example, if you go to  page.php?id=../index.php  set a variable (how about $newId) to "indexphp".

another example:  page.php?id=index.php  set $newId to "indexphp" again.

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.