mattibutt
asked on
poll posting
hi
i want to load and post question from my application to another application
both are in php
i want to load and post question from my application to another application
both are in php
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
hi jimjo95
i cant do include because of the conflict with the two application functions.
hi cyber
i am currently doing using iframe i want to post the userid do you think i will be able to do that?
i cant do include because of the conflict with the two application functions.
hi cyber
i am currently doing using iframe i want to post the userid do you think i will be able to do that?
if you want to pass the user id to the paeg in iframe, you can pass it in the query string,
poll.php?userid=$userid
poll.php?userid=$userid
ASKER
thing is poll will be located on each page not sure how i can do this
can we a screen shot of the existing situation? it will give us a better idea!
ASKER
hi
on the top there is a menu and the grey screen where poll is appearing its in the iframe
poll.JPG
on the top there is a menu and the grey screen where poll is appearing its in the iframe
poll.JPG
ASKER
iframe source
<iframe src ="poll/index.php" FRAMEBORDER=0 width="100%" height="300">
<p>Your browser does not support iframes.</p>
</iframe>
user id fetching code
$query = mysql_query("SELECT * FROM pm_users where username = '".$userdata['username']." '");
$rows = mysql_num_rows($query);
$r = mysql_fetch_array($query);
now the trouble is how do i send userid when the button within iframe is clicked
<iframe src ="poll/index.php" FRAMEBORDER=0 width="100%" height="300">
<p>Your browser does not support iframes.</p>
</iframe>
user id fetching code
$query = mysql_query("SELECT * FROM pm_users where username = '".$userdata['username']."
$rows = mysql_num_rows($query);
$r = mysql_fetch_array($query);
now the trouble is how do i send userid when the button within iframe is clicked
where you want to send the userid?
how about storing the userid in a session variable? you can access the userid from the session variable in all your pages.
how about storing the userid in a session variable? you can access the userid from the session variable in all your pages.
ASKER
hi cyber
i have found another poll which i am able to include on my page but i am having problem with posting, i think this poll is not for me if you are online let me know then i will post
i have found another poll which i am able to include on my page but i am having problem with posting, i think this poll is not for me if you are online let me know then i will post
yes, I am online now.
ASKER
hi cyber
thanks for replying, this is the new poll i found and the question link is below
https://www.experts-exchange.com/questions/24242564/posting-using-include.html
thanks for replying, this is the new poll i found and the question link is below
https://www.experts-exchange.com/questions/24242564/posting-using-include.html
ASKER
thanks guys i have managed to resolve this problem
ASKER
Open in new window