Vraag & Antwoord

Webprogrammeren & scripting

Help! Ik kom er niet uit! (Contact formulier)

7 antwoorden
  • Waarom werkt mijn contact formulier niet: www.newcybertron.nl/contact.php Dit is de broncode die ik van een andere site heb gehaald: [code:1:b0ff3683d2] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><!-- InstanceBegin template="/Templates/newctemplate.dwt.php" codeOutsideHTMLIsLocked="false" --> <head> <!-- InstanceBeginEditable name="doctitle" --> <title>Newcybertron</title> <!-- InstanceEndEditable --> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="http://www.newcybertron.nl/css/template_css.css" rel="stylesheet" type="text/css" /> <link rel="shortcut icon" href="http://www.newcybertron.nl/indexpictures/icoon.ico" /> <!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable --> <script language="JavaScript" type="text/JavaScript"> <!-- function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); } MM_reloadPage(true); function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_showHideLayers() { //v6.0 var i,p,v,obj,args=MM_showHideLayers.arguments; for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2]; if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; } obj.visibility=v; } } function P7_hideDiv(evt) { //v1.3 by PVII var b,relT,mT=false; if(document.layers){b=evt.target;if(b.p7aHide){ b.visibility="hidden";}else{routeEvent(evt);} }else if(document.all&&!window.opera){b=event.srcElement; while(b!=null){if(b.tagName=="DIV" && b.p7ahD){mT=true;break;}b=b.parentElement;} if(!b.contains(event.toElement)){b.style.visibility="hidden";} }else if(document.getElementById){b=evt.currentTarget;relT=evt.relatedTarget; while(relT!=null){if(b==relT){mT=true;break;} relT=relT.parentNode;}if(!mT){b.style.visibility="hidden";}} } function P7_autoHide() { //v1.3 by PVII var i,g,args=P7_autoHide.arguments; for(i=0;i<args.length;i++){if((g=MM_findObj(args[i]))!=null){ g.p7aHide=true;if(document.layers){ g.captureEvents(Event.MOUSEOUT);}g.onmouseout=P7_hideDiv;g.p7ahD=true;}} } //--> </script> </head> <body class="page_bg"> <div class=layer_stijl id="laagproducten" style="position:absolute; width:99px; height:88px; z-index:1; left: 430px; top: 147px; visibility: hidden; overflow: hidden;"> <table width="100%" border="0" cellpadding="0" cellspacing="0" class="layer_stijl2"> <tr> <td class="layer_stijl2"><div align="center"><font color="#FFFFFF"><a href="http://www.newcybertron.nl/reissues.htm">Reissues</a></font></div></td> </tr> <tr> <td class="layer_stijl2"><div align="center"><font color="#FFFFFF"><a href="http://www.newcybertron.nl/mp.htm">M.P</a></font></div></td> </tr> </table> <p align="center"></p> </div> <div class=layer_stijl id="laagconventies" style="position:absolute; width:99px; height:88px; z-index:1; left: 498px; top: 147px; visibility: hidden; overflow: hidden;"> <table width="100%" border="0" cellpadding="0" cellspacing="0" class="layer_stijl2"> <tr> <td class="layer_stijl2"><div align="center"><font color="#FFFFFF"><a href="http://www.newcybertron.nl/ncabotcon.htm">Newcybercon</a></font></div></td> </tr> <tr> <td class="layer_stijl2"><div align="center"><font color="#FFFFFF"><a href="http://www.newcybertron.nl/dutchbotcon2004.htm">Dutchbotcon</a></font></div></td> </tr> </table> <p align="center"></p> </div> <div class=layer_stijl id="laaglinks" style="position:absolute; width:99px; height:88px; z-index:1; left: 722px; top: 147px; visibility: hidden; overflow: hidden;"> <table width="100%" border="0" cellpadding="0" cellspacing="0" class="layer_stijl2"> <tr> <td class="layer_stijl2"><div align="center"><font color="#FFFFFF"><a href="http://www.newcybertron.nl/linkpage.htm">Linkpage</a></font></div></td> </tr> <tr> <td class="layer_stijl2"><div align="center"><font color="#FFFFFF"><a href="http://www.newcybertron.nl/linkons.htm">Link ons </a></font></div></td> </tr> </table> <p align="center"></p> </div> <table width="800" height="865" border="0" align="center" cellpadding="0" cellspacing="0" class="big_frame"> <tr> <td class="page_bg" height="127" colspan="3" valign="bottom"><a href="http://www.newcybertron.nl"><img src="indexpictures/newlogo_bots.jpg" width="800" height="127" border="0"></a></td> </tr> <tr> <td height="19" colspan="3" background="indexpictures/balk1.jpg"> <div align="left"> <table width="800" height="19" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="125" height="19"> <td> <a href="http://www.newcybertron.nl/transformers.htm"> </a><a href="http://www.newcybertron.nl/transformers.htm"><img src="indexpictures/buttons/home.jpg" width="43" height="19" border="0"></a><a href="http://www.newcybertron.nl" target="_blank"><img src="indexpictures/buttons/niews.jpg" width="51" height="19" border="0"></a><a href="http://www.newcybertron.nl/forum.php" target="_blank"><img src="indexpictures/buttons/forum.jpg" width="47" height="19" border="0"></a><a href="javascript:;" onMouseOver="MM_showHideLayers('laagproducten','','show');P7_autoHide('laagproducten')"MM_showHideLayers('laagproducten','','hide')><img src="indexpictures/buttons/producten.jpg" width="69" height="19" border="0"></a><a href="javascript:;" onMouseOver="MM_showHideLayers('laagconventies','','show');P7_autoHide('laagconventies')"><img src="indexpictures/buttons/conventies.jpg" width="73" height="19" border="0"></a><img src="indexpictures/buttons/fotogalerijen.jpg" width="85" height="19"><a href="http://www.newcybertron.nl/chatbox.htm"><img src="indexpictures/buttons/livechat.jpg" width="65" height="19" border="0"></a><a href="http://www.newcybertron.nl/linkpage.htm" onMouseOver="MM_showHideLayers('laaglinks','','show');P7_autoHide('laaglinks')"><img src="indexpictures/buttons/links.jpg" width="40" height="19" border="0"></a><a href="http://www.newcybertron.nl/helpdesk.htm"><img src="indexpictures/buttons/helpdesk.jpg" width="63" height="19" border="0"></a><a href="http://www.newcybertron.nl/contact.htm"><img src="indexpictures/buttons/contact.jpg" width="55" height="19" border="0"></a></td> </tr> </table> </div> <tr> <td class="menu_links" valign="top" width="125" height="700"><table width="125" height="437" cellpadding="0" cellspacing="0"> <tr> <td width="125" height="35"><div align="center"><img src="indexpictures/sponsors.gif" width="123" height="40"></div></tr> <tr> <td height="100"><div align="center"><a href="http://www.action-HQ.com" target="_blank"><img src="/banners/sponsor_wheeljack.jpg" width="120" height="355" border="0"></a></div></tr> <tr> <td height="40"> </tr> </table></td> <td width="17"></td> <td valign="top" width="658" height="700" ><!-- InstanceBeginEditable name="midden" --> <script language="JavaScript" type="text/javascript"> <!-- function validate(){ if ( ( document.emailForm.text.value == "" ) || ( document.emailForm.email.value.search("@") == -1 ) || ( document.emailForm.email.value.search("[.*]" ) == -1 ) ) { alert( "Controleer of het formulier goed is ingevuld." ); } else { document.emailForm.action = "index.php?option=com_contact&Itemid=3" document.emailForm.submit(); } } //--> </script> <script type="text/javascript"> <!-- function ViewCrossReference( selSelectObject ){ var links = new Array(); links[2]='index.php?option=com_contact&task=view&contact_id=2&Itemid=3'; var sel = selSelectObject.options[selSelectObject.selectedIndex].value if (sel != "") { location.href = links[sel]; } } //--> </script> <script language='JavaScript' type='text/javascript'> <!-- var prefix = 'ma' + 'il' + 'to'; var path = 'hr' + 'ef' + '='; var addy = 'floris' + '@' + 'newcybertron.nl'; document.write( '<a ' + path + '\'' + prefix + ':' + addy + '\'>' + addy + '</a>' ); //--> </script> <form action="index.php?option=com_contact&Itemid=2" method="post" name="emailForm" target="_top" id="emailForm"> <div class="contact_email"> Uw naam: <br /> <input type="text" name="name" size="30" class="inputbox" value="" /> <br /> Uw e-mail adres: <br /> <input type="text" name="email" size="30" class="inputbox" value="" /> <br /> Onderwerp: <br /> <input type="text" name="subject" size="30" class="inputbox" value="" /> <br /><br /> Uw bericht: <br /> <textarea cols="50" rows="10" name="text" class="inputbox"></textarea> <br /> <input type="checkbox" name="email_copy" value="1" /> Verstuur een kopie van dit bericht naar uzelf <br /><br /> <input type="button" name="send" value="Verzenden" class="button" onclick="validate()" /> </div> <input type="hidden" name="option" value="com_contact" /> <input type="hidden" name="con_id" value="2" /> <input type="hidden" name="sitename" value="www.newcybertron.nl" /> <input type="hidden" name="op" value="sendmail" /> </form><!-- InstanceEndEditable --></td> </tr> <tr> <td height="19" colspan="3" class="balk1"><div align="right"><img src="indexpictures/buttons/copyright.jpg" width="330" height="19"></div></td> </tr> </table> </body> <!-- InstanceEnd --></html>[/code:1:b0ff3683d2] Waarom werkt het niet en hoe kan ik het fixen? :roll:
  • Altijd makkelijk als je zegt wat er niet werkt... Maar anyways: je form actie wijst naar index.php, bestaat die wel enzo?
  • [quote:fbfa534f23="Bill Gates"]Altijd makkelijk als je zegt wat er niet werkt... Maar anyways: je form actie wijst naar index.php, bestaat die wel enzo?[/quote:fbfa534f23] Ik onvang geen e-mail.
  • Index.php bestaat niet.
  • [quote:0e32d640f7="newcybertron"]Index.php bestaat niet.[/quote:0e32d640f7] Oeps, sorry die bestaat wel. Dat moet dan de phpbb portal zijn...
  • Bedankt voor jullie support! NOT!
  • Nou, je kunt concluderen, dat het probleem in index.php moet zitten. Voor ons is het dus verder koffiedikkijken. Dingen die voor de hand liggen, zijn een fout ingestelde SMTP server, of een missende sendmail. Overigens bestaat er geen recht om geholpen te worden. Men helpt jou hier geheel vrijwillig in zijn vrije tijd.

Beantwoord deze vraag

Weet jij het antwoord op deze vraag? Registreer of meld je aan met je account

Dit is een gearchiveerde pagina. Antwoorden is niet meer mogelijk.