Results 1 to 10 of 11
-
17th Jul 2011, 02:52 PM #1OPBannedWebsite's:
WarezRelease.org ThatHosting.coPHP > HTML Replacement
can any1 plz tell me how 2 do the html replacement? i googled it and came cross the: strip_tags( blah ) function but i dunt thinkz it'll work.
for this;
PHP Code:echo " <p class='select_text' align='center'><b>URL:</b> <input tabindex='1' value='[IMG]$siteURL/$uploadDir/$name[IMG]' onclick='this.focus();this.select();' size='65' /></p>";
Chris2k Reviewed by Chris2k on . PHP > HTML Replacement can any1 plz tell me how 2 do the html replacement? i googled it and came cross the: strip_tags( blah ) function but i dunt thinkz it'll work. for this; echo " <p class='select_text' align='center'><b>URL:</b> <input tabindex='1' value='$siteURL/$uploadDir/$name' onclick='this.focus();this.select();' size='65' /></p>"; Rating: 5
-
17th Jul 2011, 03:00 PM #2Member
Do you mean to change the web address output or am I reading this wrong?
-
17th Jul 2011, 03:48 PM #3MemberWebsite's:
Elite.SO Defendos.com Motionite.comPlease explain it a bit more...
-
17th Jul 2011, 03:49 PM #4Respected MemberWebsite's:
DL4Everything.com Soft2050.inNo need to use strip_tags as that will remove the html code too
Solution
As you included other variables which outputting, you need to use:
"{" and "}" before and after the variable respectively
So your new PHP Code:
PHP Code:echo " <p class='select_text' align='center'><b>URL:</b> <input tabindex='1' value='[IMG]{$siteURL}/{$uploadDir}/{$name}[/IMG]' onclick='this.focus();this.select();' size='65' /></p>";
PHP Code:<?php
$siteURL = "http://localhost.com";
$uploadDir = "uploads";
$name = "filename.png";
echo " <p class='select_text' align='center'><b>URL:</b> <input tabindex='1' value='[IMG]{$siteURL}/{$uploadDir}/{$name}[/IMG]' onclick='this.focus();this.select();' size='65' /></p>";
?>
-
18th Jul 2011, 12:41 PM #5MemberWebsite's:
Elite.SO Defendos.com Motionite.comEuhm, did you fixed it? If yes where is the thankyou?
-
18th Jul 2011, 01:11 PM #6MemberWebsite's:
aquickhost.com
-
18th Jul 2011, 01:13 PM #7BannedWebsite's:
Seecure.meUse ermm.
preg match, preg replace? or str replace or someshit.
-
18th Jul 2011, 01:21 PM #8It begins...
You're gonna have to explain what it is that you are trying to do. Only then can we assist you with it @OP
-
18th Jul 2011, 01:55 PM #9Respected MemberWebsite's:
DL4Everything.com Soft2050.in
-
18th Jul 2011, 02:02 PM #10It begins...
Or he could simply wrap the code with variables in double quotes instead of single quotes.
OR, he could close single quotes where he encounters variables and re-open them later.
{ and } is not the only solution (assuming that's what he wants to do)
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
replacement for Lulzimg
By manthing in forum Webmaster DiscussionReplies: 20Last Post: 3rd Aug 2012, 01:29 AM -
WP o Matic Replacement ?
By _brazzO in forum WordpressReplies: 4Last Post: 27th Nov 2011, 05:42 AM -
ScreenSnapr Replacement ?
By DLow in forum General DiscussionReplies: 5Last Post: 25th Sep 2011, 03:50 PM -
Free Online Photoshop Replacement
By Jesse in forum Useful SitesReplies: 3Last Post: 7th Apr 2011, 09:14 PM -
Replacement of Epassporte for Affiliates
By ad33l in forum Webmasters, Money MakingReplies: 20Last Post: 30th Oct 2010, 09:01 AM
themaRegister - register to forums...
Version 3.54 released. Open older version (or...