Php 用变量回复URL

Php 用变量回复URL,php,html,facebook,hyperlink,Php,Html,Facebook,Hyperlink,这里我们需要替换url“http://www.juboapp.com/“使用存储此链接的变量。此变量来自另一个PHP文件 如何用此变量替换此链接,以便它可以在给定链接上重定向 它又好又简单,替换为: http://www.juboapp.com/与 但是,如果变量是在另一个脚本(脚本A)中建立的,您需要让它能够被要替换(脚本B)中URL的脚本读取-您需要在第二个脚本(脚本B)中或在另一个脚本(脚本A)上创建变量或第一个脚本(脚本A)将变量分配给会话或cookie。声明变量并在其中存储url。并使

这里我们需要替换url“http://www.juboapp.com/“使用存储此链接的变量。此变量来自另一个PHP文件


如何用此变量替换此链接,以便它可以在给定链接上重定向

它又好又简单,替换为:

http://www.juboapp.com/


但是,如果变量是在另一个脚本(脚本A)中建立的,您需要让它能够被要替换(脚本B)中URL的脚本读取-您需要在第二个脚本(脚本B)中或在另一个脚本(脚本A)上创建变量或第一个脚本(脚本A)将变量分配给会话或cookie。

声明变量并在其中存储url。并使用以下各项:

<input type="button" 
    style="height: 40px; width: 185px; background-color:#4863A0;
           Color:#FFFFFF;font-weight: bold; text-align:center" 
    value="Login using facebook" 
    onClick="parent.location='https://graph.facebook.com/oauth/authorize?type=user_agent&client_id=256953694326584&redirect_uri=**http://www.juboapp.com/**edit.php&scope=email,user_birthday,offline_access'">
$dynamiccurl=”http://www.google.com/";
$dynamicUrl = "http://www.google.com/";

<input type="button" style="height: 40px; width: 185px; background-color:#4863A0;

 Color:#FFFFFF;font-weight: bold; text-align:center" value="Login using facebook" 

onClick="parent.location='https://graph.facebook.com/oauth/authorize?type=user_agent&

client_id=256953694326584&redirect_uri=<?php echo $dynamicUrl?>edit.php&

scope=email,user_birthday,offline_access'">