<?php
assign("$flare","tempestflarex@hotmail.com");
?>
<a href="
<?php
print("$flare");
?>
">
<?php
print("$flare");
?>
</a>
does this work
Moderator: General Moderators
does this work
would the following code work
If you implement the function `assign` it would. something like this:
Code: Select all
function assign($var_name,$var_value){
global $$var_name;
$$var_name=$var_value;
}
//call it as follows:
assign("flare","tempestflarex@hotmail.com");-
Bennettman
- Forum Contributor
- Posts: 130
- Joined: Sat Jun 15, 2002 3:58 pm
To answer your question, yes it would work, apart from the lack of "mailto:" needed to make it an email link. However, this is a more effective method:
What's the purpose of the code? I don't see any point in doing it like that unless $flare could be one of a number of email addresses.
Code: Select all
<?php
$flare = "tempestflarex@hotmail.com";
print "<a href="mailto:$flare">$flare</a>";
?>