Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2005
    Location
    Leeds
    Posts
    3,423
    Tokens
    0

    Latest Awards:

    Default Using JS in PHP...

    Heya,

    This is a question.

    I no what some of you are thinking about Javascript link-pop ups but I need to do this for a system.

    HTML Code:
    <a href="" onClick="alert('Message')">Click here...</a>
    But I need it to be able to use varibles in PHP.

    I tryed using echos but I just kept getting errors.

    Anyone able to help?
    Thanks

  2. #2
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    Its quite easy, youd just want to / out the js's "" so they dont intefear with the phps

  3. #3
    Join Date
    Mar 2005
    Location
    Leeds
    Posts
    3,423
    Tokens
    0

    Latest Awards:

    Default

    Ta da. Thanks Mentor

    on the url I just had to also add "#"



    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •