Login | Register | FAQ
Anonymous

One Question

+ Post a reply

11 posts 1, 2


One Question

by soccerwebsitemaker » Sat Jun 09, 2012 4:24 pm

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!
User avatar

soccerwebsitemaker

  • Posts: 139
  • Joined: Sat Dec 31, 2011 6:25 pm
--
Coins. Profile. Games. Chat. Fun.

CoinAwards.

Check it out at http://www.coinawards.net63.net/

Re: One Question

by soccerwebsitemaker » Sat Jun 09, 2012 8:01 pm

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!!!!
User avatar

soccerwebsitemaker

  • Posts: 139
  • Joined: Sat Dec 31, 2011 6:25 pm
--
Coins. Profile. Games. Chat. Fun.

CoinAwards.

Check it out at http://www.coinawards.net63.net/

Re: One Question

by XainPro » Sun Jun 10, 2012 6:29 am

YOu are always Welcome BTW CAN I ASK WHAT ARE YOU TRYING TO DEVELOPED FROM LAST 3 WEEKS ?
User avatar

XainPro

  • Posts: 3567
  • Joined: Fri Feb 17, 2012 8:10 pm

Re: One Question

by soccerwebsitemaker » Tue Jun 12, 2012 9:25 pm

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!!!!!!!!!!!!!!!!!!!
User avatar

soccerwebsitemaker

  • Posts: 139
  • Joined: Sat Dec 31, 2011 6:25 pm
--
Coins. Profile. Games. Chat. Fun.

CoinAwards.

Check it out at http://www.coinawards.net63.net/

Re: One Question

by XainPro » Wed Jun 13, 2012 5:51 am

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 !
User avatar

XainPro

  • Posts: 3567
  • Joined: Fri Feb 17, 2012 8:10 pm

Re: One Question

by soccerwebsitemaker » Thu Jun 14, 2012 12:35 am

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...
User avatar

soccerwebsitemaker

  • Posts: 139
  • Joined: Sat Dec 31, 2011 6:25 pm
--
Coins. Profile. Games. Chat. Fun.

CoinAwards.

Check it out at http://www.coinawards.net63.net/

Re: One Question

by XainPro » Thu Jun 14, 2012 11:49 am

well i am abcxyz :)
and don't betrayed your users privacy :) lolz
ok i will try...
User avatar

XainPro

  • Posts: 3567
  • Joined: Fri Feb 17, 2012 8:10 pm

Re: One Question

by soccerwebsitemaker » Thu Jun 14, 2012 12:31 pm

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??????
User avatar

soccerwebsitemaker

  • Posts: 139
  • Joined: Sat Dec 31, 2011 6:25 pm
--
Coins. Profile. Games. Chat. Fun.

CoinAwards.

Check it out at http://www.coinawards.net63.net/

Re: One Question

by XainPro » Fri Jun 15, 2012 4:04 am

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 :(
User avatar

XainPro

  • Posts: 3567
  • Joined: Fri Feb 17, 2012 8:10 pm

Re: One Question

by soccerwebsitemaker » Sat Jun 16, 2012 6:11 pm

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!
User avatar

soccerwebsitemaker

  • Posts: 139
  • Joined: Sat Dec 31, 2011 6:25 pm
--
Coins. Profile. Games. Chat. Fun.

CoinAwards.

Check it out at http://www.coinawards.net63.net/


+ Post a reply

1, 2

?>