nitromaster Posted August 5, 2008 Share Posted August 5, 2008 That I can't figure out Basically two things I need to have $profile_id = $user_id if there is no fb_page_id parameter in the POST to the php. and also have $page_url_link = fb_page_id=(+the fb_oage_id from the POST if it exists) Any help? I sux at php I tried having like if ($_POST['fb_page_id'] == '') ( $profile_id = $_POST['fb_page_id'] $page_url_link = fb_page_id="' . $profile_id . '" ) <fb:tab-item href="http://someurl.com/filename.php?' . $row["id"] . ' title="About"/> but that resulted in PHP Parse error: syntax error, unexpected T_VARIABLE in /home/site/public_html/appname/index.php on line 9 with line 9 being: $page_url_link = fb_page_id="' . $profile_id . '" Quote Link to comment https://forums.phpfreaks.com/topic/118341-solved-simple-problem/ Share on other sites More sharing options...
DeanWhitehouse Posted August 5, 2008 Share Posted August 5, 2008 if ($_POST['fb_page_id'] == '') ( $profile_id = $_POST['fb_page_id']; $page_url_link = fb_page_id="' . $profile_id . '"; ) Quote Link to comment https://forums.phpfreaks.com/topic/118341-solved-simple-problem/#findComment-609023 Share on other sites More sharing options...
kenrbnsn Posted August 5, 2008 Share Posted August 5, 2008 An "if" block is delimited by "{ }", not "( )": <?php if ($_POST['fb_page_id'] == '') { $profile_id = $_POST['fb_page_id']; $page_url_link = fb_page_id="' . $profile_id . '"; }?> Ken Quote Link to comment https://forums.phpfreaks.com/topic/118341-solved-simple-problem/#findComment-609026 Share on other sites More sharing options...
DeanWhitehouse Posted August 5, 2008 Share Posted August 5, 2008 thanks ken, didnt see that Quote Link to comment https://forums.phpfreaks.com/topic/118341-solved-simple-problem/#findComment-609028 Share on other sites More sharing options...
nitromaster Posted August 19, 2008 Author Share Posted August 19, 2008 Thanks :) Quote Link to comment https://forums.phpfreaks.com/topic/118341-solved-simple-problem/#findComment-620417 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.