Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #1694
| From | "Mentalguy2k8" <Mentalguy2k8@gmail.com> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: How to "quote code" in PHP? |
| Date | 2011-05-20 17:21 +0100 |
| Organization | A noiseless patient Spider |
| Message-ID | <ir64dp$982$1@dont-email.me> (permalink) |
| References | <ir45oo$mik$1@dont-email.me> <ir55ie$ha3$1@dont-email.me> <ir59l6$6pj$1@dont-email.me> <iqact6pduh5u0vduj6i9gttss0on477hr4@mfesser.de> <p3gct69n00naeh50sk4f7grl2t87a6g5qg@4ax.com> |
"Jeff North" <jnorthau@yahoo.com.au> wrote in message
news:p3gct69n00naeh50sk4f7grl2t87a6g5qg@4ax.com...
> On Fri, 20 May 2011 10:54:07 +0200, in comp.lang.php Michael Fesser
> <netizen@gmx.de>
> <iqact6pduh5u0vduj6i9gttss0on477hr4@mfesser.de> wrote:
>
>>| .oO(Mentalguy2k8)
>>|
>>| >I'm getting in a mess here... I've written the page where the user
>>inputs
>>| >the URL into a text box (as "url"), which passes the URL to the results
>>page
>>| >as follows:
>>| >
>>| >Cut and paste this link: <?php echo $_POST["url"]; ?>
>>| >
>>| >which will display the text "cut and paste this link" along with the
>>URL
>>| >that they entered. I need to add the <a href and the closing </a>
>>around the
>>| >URL, without spaces, so that the user can copy the entire line and
>>paste it
>>| >into the forum box.
>>|
>>| <?php echo htmlspecialchars("<a href='{$_POST['url']}'></a>");?>
>>|
>>| Something like that.
>>|
>>| Micha
> So you get some text to show the link you will need:
> <?php echo htmlspecialchars("<a
> href='{$_POST['url']}'>{$_POST['url']}</a>");?>
Thanks a lot everyone, very useful and I got it working. Very much
appreciated, thanks again.
Back to comp.lang.php | Previous | Next — Previous in thread | Find similar | Unroll thread
How to "quote code" in PHP? "Mentalguy2k8" <Mentalguy2k8@gmail.com> - 2011-05-19 23:31 +0100
Re: How to "quote code" in PHP? Jeff North <jnorthau@yahoo.com.au> - 2011-05-20 10:47 +1000
Re: How to "quote code" in PHP? Jerry Stuckle <jstucklex@attglobal.net> - 2011-05-19 21:47 -0400
Re: How to "quote code" in PHP? "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid> - 2011-05-20 09:34 +0200
Re: How to "quote code" in PHP? "Mentalguy2k8" <Mentalguy2k8@gmail.com> - 2011-05-20 09:44 +0100
Re: How to "quote code" in PHP? Michael Fesser <netizen@gmx.de> - 2011-05-20 10:54 +0200
Re: How to "quote code" in PHP? Jeff North <jnorthau@yahoo.com.au> - 2011-05-20 20:21 +1000
Re: How to "quote code" in PHP? "Mentalguy2k8" <Mentalguy2k8@gmail.com> - 2011-05-20 17:21 +0100
csiph-web