Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 11-14-2004, 08:57 PM   #1
dodger21
Confirmed User
 
Join Date: Jan 2003
Location: Los Angeles
Posts: 2,680
Simple PHP question

How do I assign this html string to a php variable and then how do I call that variable in my html?

This is the string I want to assign to a php variable

<a href="somelink.htm" onMouseOver="window.status='blahblahblah';return true" onMouseOut="window.status='';return true">
dodger21 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-14-2004, 09:03 PM   #2
phpslave
Confirmed User
 
Join Date: Jan 2003
Location: San Jose
Posts: 548
the message board will problem take this and fuck it up with hahahaha or somebullshit, but here;

$str = "<a href=\"somelink.htm\" onMouseOver=\"window.status='blahblahblah';return true\" onMouseOut=\"window.status='';return true\">";
?>

<!-- then in your html -->

<?=$str?>

<!-- or -->
<?
print $str;
?>

there are many ways to do it

PHP Code:
$str = "<a href=\"somelink.htm\" onMouseOver=\"window.status='blahblahblah';return true\" onMouseOut=\"window.status='';return true\">";
?>

<!-- then in your html -->

<?=$str?>

<!-- or -->
<?
print $str;
?>
__________________

phpslave is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-14-2004, 09:06 PM   #3
dodger21
Confirmed User
 
Join Date: Jan 2003
Location: Los Angeles
Posts: 2,680
Thanks. I had everything right except for escaping the quotes. WTF is the hahaha shit?
dodger21 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-14-2004, 09:11 PM   #4
stev0
Confirmed User
 
stev0's Avatar
 
Join Date: Aug 2003
Location: Calgary, Alberta
Posts: 6,801
Quote:
Originally posted by dodger21
Thanks. I had everything right except for escaping the quotes. WTF is the hahaha shit?
That's the board censoring words
stev0 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-14-2004, 09:20 PM   #5
Doc911
Confirmed User
 
Join Date: Feb 2004
Location: If i was up your ass you'd know
Posts: 3,695
If you don't like all the escaping you can save the data in a txt file and do

<?
$string = "file.txt";
file_get_contents($string);
print ("$string");
?>
__________________


For PHP/MySQL scripts ICQ 161480555 or email [email protected]
Doc911 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.