Forum Moderators: coopster

Message Too Old, No Replies

how to autocreate a link me html code using php

php link me image

         

chikooo

12:31 am on Feb 17, 2009 (gmt 0)

10+ Year Member



anybody knows or can teach me how to create a script that will autocreate a link me html code with an image so i paste that script and i wont have to write the html code myself so the php script will do the work

a html code like the one that this sites have <snip>

<snip>

and if im not askign too much how do i let my user post a message using php?

[edited by: dreamcatcher at 7:08 am (utc) on Feb. 17, 2009]
[edit reason] No personal urls, thanks. [/edit]

coopster

12:25 pm on Feb 17, 2009 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, chikooo.

If you can write the html then all you have to do is echo it out with PHP using the htmlentities [php.net] function.

chikooo

11:42 pm on Feb 19, 2009 (gmt 0)

10+ Year Member



can you teach me how?

coopster

12:08 am on Feb 20, 2009 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Sure!
$string = '<a href="http://www.example.com/"><img src="myimage.jpg"></a>'; 
print htmlentities [php.net]($string);

chikooo

12:12 am on Feb 20, 2009 (gmt 0)

10+ Year Member



im using a php script that it automatically displays one image on the web page. so i want to add a like me html code below that image using php