|
Posted by on 10/10/77 11:23
| waplink("[ Send
| ]","forward.php",array("From"=>"$(From)","To"=>"$(To)","Subject"=>"$(Subject)","F"=>$F,"U"=>$U,"P"=>$P,"msgid"=>$msgid));
use {} to expand a variable in a string...i.e. ${From}, ${To}, ${Subject}
.... in this case though, there is no need to use quotes or expand the
variables...i.e. $From, $To, $Subject should be just fine.
| function waplink($name,$href,$fields) {
| /* generates the needed link in xhtml from an array */
| $arg = "";
| foreach ($fields as $key => $value)
| $arg .= "".$key."=".$value."&";
| ?>
| <small><a href="<?=$href."?".$arg?>"><?=$name?></a>
| </small><br/>
| <?}
it's not a good idea to spew html from a function...but, that's up to you.
hth,
me
[Back to original message]
|