![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
21/09/2007, 00:38
|
![Avatar de Txane](http://static.forosdelweb.com/customavatars/avatar54461_1.gif) | | | Fecha de Ingreso: febrero-2004 Ubicación: Morelia Michoacan
Mensajes: 272
Antigüedad: 21 años Puntos: 2 | |
Re: Variable PHP en Javascript (Error de sintaxis) seria algo como esto
<input type="submit" name="Submit2" value="Agregar" onclick="buyItem('<?=$producto?>','0', 1)"/>
donde $producto es la variable en PHP
si es eso a lo que te refieres? |