note 15435 deleted from function.strlen by dams
| From: | dams@php.net | Date: | Sat, 27 Jul 2002 16:24:15 +0000 |
| Subject: | note 15435 deleted from function.strlen by dams | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-33678@lists.php.net to get a copy of this message | ||
This un-mungs hotmail URL's using the strlen tag, so I thought it was a good example to put
here:
$link=urldecode("$badHotMailLink");
$strTossOutPos=(strpos ($link, "action=http")+7);
$NewLink=substr ($link, $strTossOutPos , (strlen($link))-$strTossOutPos);
echo "<a href=\"$NewLink\"
target=\"linktargetwindow\">".$NewLink."</a><br>";
Just 'copy shortcut' (in ie) and paste it into that code, and viola! Build a form so you
can submit it to yourself.
-a_void@hotSNAILmail.com (remove SNAIL to reply)