Jump to content
php.lv forumi

Loop!


thesnarkie

Recommended Posts

I would suggest you do a loop in PHP to put together the argument list automatically at run-time rather than hard-coding it manually, that way you'll never miss any values even if facebook changes what they send.

Viņš bija domājis salikt kopā visas $_REQUEST vērtības.Kā to izdarīt pareizāk?

Pagaidām hārd korā darīju šādi:

if($result!=1) { 
$fb_sig_in_iframe = $_REQUEST['fb_sig_in_iframe'];
$fb_sig_iframe_key = $_REQUEST['fb_sig_iframe_key'];
$fb_sig_locale = $_REQUEST['fb_sig_locale'];
$fb_sig_in_new_facebook = $_REQUEST['fb_sig_in_new_facebook'];
$fb_sig_added = $_REQUEST['fb_sig_added'];
$fb_sig_profile_update_time = $_REQUEST['fb_sig_profile_update_time'];
$fb_sig_user = $_REQUEST['fb_sig_user'];
$fb_sig_session_key = $_REQUEST['fb_sig_session_key'];
$fb_sig_ss = $_REQUEST['fb_sig_ss'];
$fb_sig_ext_perms = $_REQUEST['fb_sig_ext_perms'];
$fb_sig_api_key = $_REQUEST['fb_sig_api_key'];
$fb_sig_app_id = $_REQUEST['fb_sig_app_id'];
       $fb_sig = $_REQUEST['fb_sig'];
$fb_sig_time = $_REQUEST['fb_sig_time'];
)

Edited by thesnarkie
Link to comment
Share on other sites

header("location:fb_signup.php?fb_sig_in_iframe=$fb_sig_in_iframe&fb_sig_iframe_key=$fb_sig_iframe_key&fb_sig_locale=$fb_sig_locale&fb_sig_in_new_facebook=$fb_sig_in_new_facebook&fb_sig_added=$fb_sig_added&fb_sig_profile_update_time=$fb_sig_profile_update_time&fb_sig_user=$fb_sig_user&fb_sig_session_key=$fb_sig_session_key&fb_sig_ss=$fb_sig_ss&fb_sig_ext_perms=$fb_sig_ext_perms&fb_sig_api_key=$fb_sig_api_key&fb_sig_app_id=$fb_sig_app_id&fb_sig=$fb_sig");

 

Visas tās vērtības saiet tur iekšā. : D Un vajadzētu lai viņš iegūst visas vērtības no request un ieliek tur.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...