[JS/PHP] Popup windows met 2 variable

Pagina: 1
Acties:
  • 32 views sinds 30-01-2008

  • RMX
  • Registratie: Augustus 2000
  • Laatst online: 11:30
Ik ben hier al heel lang op bezig, search gebruikt maar helaas niks gevonden :(
code:
1
2
3
4
5
6
7
<script language="JavaScript">
<!--
  function show_foto(id) {
    window.open("popup.php?id=" + id, ""&fid=" + fid, ",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=617,height=450'); 
  }
//-->
</script>

Dat ding gebruik ik voor een popup te openen.
En hiermee roep ik het aan:
code:
1
<A HREF=javascript:show_foto($id,$fid);>[img]foto/thumb_$foto1[/img]</a><br>


Nu krijg ik de foutmelding fid is niet gedefinieerd. Ik kom er echt niet meer uit.
Iemand met een oplossing?

  • crisp
  • Registratie: Februari 2000
  • Nu online

crisp

Devver

Pixelated

basic:

JavaScript:
1
2
3
4
5
<script type="text/javascript">
function show_foto(id,fid) {
  window.open('popup.php?id='+id+'&fid='+fid, 'naamvanjepopup', 'properties');
}
</script>


en dit hoort in Webdesign & Graphics als het niet zo basic zou zijn

Intentionally left blank


  • curry684
  • Registratie: Juni 2000
  • Laatst online: 12-05 22:23

curry684

left part of the evil twins

Zie crispje :)

Professionele website nodig?


Dit topic is gesloten.