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

生成具有用户给定值的自定义url的HTML代码,url,Url,您好,我想要一个html代码,用我的用户给定值替换我的url中的xxxxxxxxxxxx值,并生成一个新的url 下面是我的网址 &图片=xxxxxxxxxxxxxxxx%3Flvh%3D1&source=&name=由Karthik发布%C2%AD&caption=Kaur&comment%C2%AD&description=%C2%用于娱乐 <?php $x="XXXXXXXXXXXXXXXXXXX"; $location= "https://www.facebook.com/con

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

下面是我的网址
&图片=xxxxxxxxxxxxxxxx%3Flvh%3D1&source=&name=由Karthik发布%C2%AD&caption=Kaur&comment%C2%AD&description=%C2%用于娱乐

<?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);
?>


我想你刚刚泄露了你的API密钥。您现在可能应该更改它。谢谢您的回答,我对这种编码非常陌生,请帮助我。我想保留你在我的博客中给出的代码。它包括XXXXXXXXX值的输入区域,并具有一个生成按钮,该按钮在与生成的新url一起单击后在“新建”选项卡中打开