One Question
One Question
So when I send my data with AJAX, on the PHP page how do I GET THE DATA!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!???????????????????????????????!!??!?!?!~??!?!@?I've tried a million different things and nothing works. No errors or anything to guide me, it just doesn't work!!!!!!
First of all, does this ajax code successfully send data to the url 'profile.php'?
- Code: Select all
$(document).ready(function()
{
$('#bluebgradio').click(function()
{
$.ajax(
{
type: "POST",
url: "profile.php",
data: { $blueBGhas: "yes" }
});
});
$('#greenbgradio').click(function()
{
$.ajax(
{
type: "POST",
url: "profile.php",
data: { $greenBGhas: "yes" }
});
});
});
Ok, so if that works then great...!
So, on the page profile.php,
what should I type to get the data sent with $_POST and SAVE it into a VARIABLE $BlueBGhas (for the first one) and also SAVE the second one into a VARIABLE $GreenBGhas!!!!
Please help meeeeeeeeee!
Re: One Question
I FIGURED IT OUT AND IM SO HAPPY DO NOT BOTHER TO WASTE YOUR TIME TO TRY AND FIX THIS CODE!THANK YOU XAINPRO FOR YOUR FEEDBACK AND IDEA FOR MY MYSQL DATABASE!!!!
Re: One Question
YOu are always Welcome BTW CAN I ASK WHAT ARE YOU TRYING TO DEVELOPED FROM LAST 3 WEEKS ?Re: One Question
Yeah sure...Ok it was for my website and everything is going well.
Since I fixed this I also made it able for you to edit your profile.
Ok, now:
Go to http://www.coinawards.net63.net/
Then on the top right corner click register
Then register
Then press back when you get to the register page
Then hover over the purple 'profile' and click the second option 'spruce it up'
Now you can pick the background color for your profile!
Another thing you can do is edit your profile
ok so go to the profile
scroll all the way down
click the white edit image
and now change your profile info!
Hope you enjoy!!!!!!!!!!!!!!!!!!!
Re: One Question
Woow That's Good and i really like it only the thing which dose not work is all the radio buttons of profile are disabled and i am not able to select or change color !Re: One Question
Ok that's probably because guests are not allowed to change profile (yet) but I'll change your database info so you can change it so get back on the site once you can it will work!Hint: When you click the radio buttons you have to go to profile, not another page or all changes will be lost!!!!!!!!!
(ill fix that later)
i am looking at the database which account are you????????
abcxyz??????
If you are abcxyz, then it is all set up.
if you are not, then just hack into that account: username: abcxyz password: abcxyz
Ok enjoy...
Re: One Question
well i am abcxyz :)and don't betrayed your users privacy :) lolz
ok i will try...
Re: One Question
Sorry man I just thought that was a test account... I could change your password if you really want...by the way do you like the customization options??????
Re: One Question
well that was just a test account anyhow now the options are available like radio buttons to select but there is no save/submit button :(Re: One Question
That's because IT SAVES AUTOMATICALLY! You could logout right after, or close the window, and it still gets saved! Thanks to the power of AJAX, you can just go to your profile right after and changes will be saved!