Zaxza
March 19, 2006, 11:39am
1
**[U][SIZE=1][COLOR=Black]http://codewalkers.com/tutorials.php?show=5
[/COLOR][/SIZE][/U]**[SIZE=1]I’ve just finished this tutorial. And have realised that the’<img src=’ tag and ‘<a href=’ tag don’t work properly. In the html a ‘’ symbol incerts itself before a ’ " ’ symbol.
e.g. <img src=“images/logo.gif”>
and before a link this happens…
Type this in the field <a href=“http://www.yoursite.com ”>
Outcome = http://www.mysite.com/“http://www.yoursite.com”
Is there a simple way to stop this, or should i try to make a BB Code for it?
[/SIZE]
mlk
March 19, 2006, 12:49pm
2
have you tried outputing ‘"’ instead of the ‘quotes’ character ? ( " )
mlk
March 19, 2006, 12:50pm
3
have you tried outputing ‘"’ instead of the ‘quotes’ character ? ( " )
For the purposes of this thing, I’ll call the input field $input.
Type in input field: <a href=“http://www.yoursite.com ”>
In PHP, type this after receiving the field (in post or whatever) and before echoing it:
$input = stripslashes($input);
Outcome should be <a href=“http://www.yoursite.com ”>
… If I understand you.
Zaxza
March 19, 2006, 2:48pm
5
Sliker_Hawk:
For the purposes of this thing, I’ll call the input field $input.
Type in input field: <a href=“http://www.yoursite.com ”>
In PHP, type this after receiving the field (in post or whatever) and before echoing it:
$input = stripslashes($input);
Outcome should be <a href=“http://www.yoursite.com ”>
… If I understand you.
Thanks for your help…
I tried this and managed to get rid of the red bit below… [SIZE=1][COLOR=Silver]http://www.mysite.com/\“http://www.yoursite.com[/COLOR][COLOR=Red]\”
[SIZE=2][COLOR=Black]But the rest still appears…[/COLOR][/SIZE]
[/COLOR][/SIZE]