Log in

View Full Version : Using JS in PHP...



Luckyrare
09-10-2005, 05:56 PM
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.


<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

Mentor
09-10-2005, 06:30 PM
Its quite easy, youd just want to / out the js's "" so they dont intefear with the phps :D

Luckyrare
09-10-2005, 06:42 PM
Ta da. Thanks Mentor

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

:P

Thanks <3

Want to hide these adverts? Register an account for free!