生成具有用户给定值的自定义网址的HTML代码

时间:2014-02-23 18:14:18

标签: url

您好我想要一个html代码,用我的用户给定的值替换我的网址中的 XXXXXXXXXXXXXXXXXXX 值并生成一个新的网址

以下是我的网址 https://www.facebook.com/connect/uiserver.php?method=stream.publish&redirect_uri=https://www.facebook.com&api_key=192236710846214& picture = XXXXXXXXXXXXXXXXXXX %3Flvh%3D1&来源= https://dl.dropboxusercontent.com/u/61636013/achille.swf&set=a.106020872877897.12204.100004099541771&type=1&theater& name =由Karthik发布%C2%AD& caption = Kaur&评论%C2%AD& description =%C2%For Fun

1 个答案:

答案 0 :(得分:0)

最好的是你使用php:

<?php 
$x="XXXXXXXXXXXXXXXXXXX";
$location= "https://www.facebook.com/connect/uiserver.php?
           method=stream.publish&redirect_uri=https://www.
           facebook.com&api_key=192236710846214 &picture=".
           $x.
           "%3Flvh%3D1& source=https://dl.dropboxusercontent.com
           /u/61636013/achille.swf&set=a.106020872877897.12204.
           100004099541771&type=1&theater &name=Posted by 
           Karthik%C2%AD&caption=Kaur & comment%C2%AD&description=%C2%";
header("Lcation:".$location);
?>