Wie wilt mij helpen bij het volgende. Heb mijn pagina omgezet naar php alleen zodra ik me poll erbij voeg en ik ga stemmen krijg ik een foutmelding. Zie: http://www.ravinimagic.nl/poll/poll.php dit is reeds de test voor index pagina. Wie kan mij vertellen hoe ik deze poll meer beneden naar in de pagina en dat ik die foutmelding weg kan krijgen? Hoop dat iemand mijn wilt helpen en me antwoord kan geven. Hieronder de code van de hele pagina:




<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<TITLE></TITLE>
<META NAME="GENERATOR" CONTENT="WEB! 2.0 Pro Extended Edition">
<STYLE>
#D6 {position:absolute;top:40px;left:190px;width:445px;height:96px;font-size:13px;color:#000000;font-family:arial;z-index:5;}
#D6m {position:absolute;top:0;left:0;width:445px;height:96px;padding:10px;background:none;text-align:left;}
#D3 {position:absolute;top:0px;left:0px;width:205px;height:95px;font-size:12px;color:#000000;font-family:arial;z-index:5;}
#D3m {position:absolute;top:0;left:0;width:205px;height:95px;padding:10px;background:none;text-align:left;}
#D10 {position:absolute;top:135px;left:180px;width:520px;height:660px;font-size:13px;color:#000000;font-family:arial;z-index:1;}
#D10m {position:absolute;top:0;left:0;width:520px;height:660px;padding:10px;background:none;text-align:left;}
#D10l0 {color:#000000;font-family: Arial;font-size: 13px;text-decoration: underline;font-weight: normal;font-style: normal}
#D10l1 {color:#000000;font-family: Arial;font-size: 13px;text-decoration: underline;font-weight: normal;font-style: normal}
#D10l2 {color:#000000;font-family: Arial;font-size: 13px;text-decoration: underline;font-weight: normal;font-style: normal}
#D10l3 {color:#000000;font-family: Arial;font-size: 13px;text-decoration: underline;font-weight: normal;font-style: normal}
#H1 {position:absolute;top:0px;left:190px;width:253px;height:69px;padding:10px;z-index:2;}
#H2 {position:absolute;top:90px;left:190px;width:300px;height:100px;padding:10px;z-index:5;}
#I1 {position:absolute;top:138px;left:165px;width:9px;height:9px;padding:10px;z-index:3;}
#I2 {position:absolute;top:202px;left:165px;width:9px;height:9px;padding:10px;z-index:5;}
#I4 {position:absolute;top:346px;left:165px;width:9px;height:9px;padding:10px;z-index:5;}
#I7 {position:absolute;top:506px;left:165px;width:9px;height:9px;padding:10px;z-index:5;}
#I11 {position:absolute;top:690px;left:565px;width:80px;height:70px;padding:10px;z-index:4;}
#I10 {position:absolute;top:530px;left:565px;width:80px;height:70px;padding:10px;z-index:4;}
#I12 {position:absolute;top:682px;left:165px;width:9px;height:9px;padding:10px;z-index:4;}
#I14 {position:absolute;top:370px;left:565px;width:80px;height:70px;padding:10px;z-index:4;}
#I9 {position:absolute;top:230px;left:565px;width:80px;height:70px;padding:10px;z-index:4;}
#G0 {position:absolute;top:79px;left:474px;padding:10px;width:125px;z-index:4;}
#G0glinks {font-size:13px;color:#000000;text-decoration:none;font-weight:normal;font-style:normal;font-family:arial;}
</STYLE>
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
function catchError()
{
return true;
}

window.onerror = catchError;

</SCRIPT>
<SCRIPT SRC="web.js" TYPE="text/javascript"></SCRIPT>
</HEAD>
<BODY STYLE="background:#ffffff url(file:///d:/ravini homepage/achtergrond.jpg) fixed;" onLoad="loader();">
<DIV ID="D6" ><LAYER NAME="D6m" WIDTH="445" BORDER="10"><DIV ID="D6m">Welkom op de website van Ravini Magic. Op onze website kunt u informatie vinden over Ravini en de shows van het jaar 2005.</DIV></LAYER></DIV>
<DIV ID="D3" ><LAYER NAME="D3m" WIDTH="205" BORDER="10"><DIV ID="D3m"><B PARENT=D3>Contact:<BR>Telefoon: 06 13 05 08 00<BR>Fax: 084 729 8005<BR>E-mail: [email protected]</B></DIV></LAYER></DIV>
<DIV ID="D10" ><LAYER NAME="D10m" WIDTH="520" BORDER="10"><DIV ID="D10m"><B PARENT=D10>Het laatste nieuws<U PARENT=D10><BR></U></B><U PARENT=D10></U>Hier kunt u de laatste berichten bekijken van Ravini Magic. Onderandere komt hier het nieuws te staan van de nieuwste updates die plaats vinden op onze website.<BR><BR><B PARENT=D10>De knop onderhoud eindelijk vervangen door "Ravini online truc"<BR></B>Het heeft even geduurd maar het is er toch van gekomen. De knop <BR>onderhoud die er al maanden lang stond is dan nu verdwenen en <BR>vervangen door "Ravini online truc". Dit zou je zeker eens moeten &nbsp;<BR>proberen en mee maken want het is voor sommige heel bijzonder <BR>om deze truc te doen via de computer. Probeer de truc eens <BR>uit en kijk of jij de testen goed uitvoerd want als dat zo<BR>is zul je verbaasd kijken. &gt;&gt;&gt; <A WS ID=D10l0 HREF="file:///D:/Ravini Homepage/Ravini_truc.html" TARGET="_self" >Ravini online truc</A><BR><BR><B PARENT=D10>Ravini in Radio uitzending van RTVNH maandag 18 juli 2005 om 09:30 uur</B><BR>Na het programma Cheeese is er aanstaande maandag <BR>18 juli 2005 live een radio uitzending rond de klok van 09:30 uur<BR>samen met Ravini. Ravini gaat vertellen over de uitzendingen van <BR>het programma Cheeese maar er gaan ook goocheltrucs over de<BR>radio gedaan worden hoe en wat dat gaat worden hoort u dus<BR>aanstaande maandag 18 juli om 09:30uur op Radio Noord Holland.<BR>Als u geen Radio Noord Holland kunt ontvangen kunt dat ook altijd <BR>live via het internet beluisteren. &gt;&gt;&gt; <A WS ID=D10l1 HREF="http://media.rtvnh.nl/asxgen/wmtencoder/radio.wmv.asx" TARGET="_blank" >Luister live naar RTVNH</A> <B PARENT=D10><BR><BR>Ravini wint televisie programma Cheeese RTVNH uitzending aanstaande donderdag 7 juli 2005 18:35 uur<BR></B>Eindelijk is het zover de winnaar van het programma Cheeese is <BR>bekend de kijkers hebben Ravini gestemd naar een 9,4 dat<BR>betekend dusDat Ravini de winnaar is van het televisie <BR>programma. De opnames zijn gemaakt en het resultaat kun<BR>je zien aanstaande donderdag 7 juli 2005 om 18:35 uur. Je kunt <BR>zien hoe Ravini de prijs overhandigd krijgt op RTVNH. De uitzending <BR>word om het uur herhaald tot vrijdag 18:00 uur. Foto's van de televisie <BR>opnames worden binnenkort nog geplaatst in het fotoboek. &gt;&gt;&gt; <A WS ID=D10l2 HREF="http://www.cheeese.rtvnh.nl"; TARGET="_blank" >Website Cheeese</A><BR> <B PARENT=D10><BR>Eindelijk is hij er dan het nieuwe domein ravinimagic.nl <BR></B>Het heeft even geduurd voor het zover was maar uiteindelijk is het<BR>er toch van gekomen ravinimagic.nl is online. We gaan natuurlijk <BR>gewoon door met de updates en het plaatsen van nieuwtjes. Ook <BR>zijn we nog druk bezig voor nieuwe filmpjes later kunt u daar nog <BR>meer informatie over lezen op de nieuws pagina. &gt;&gt;&gt; <A WS ID=D10l3 HREF="file:///D:/Ravini Homepage/Video.html" TARGET="_self" >Video streams</A></DIV></LAYER></DIV>
<DIV ID="H1"><!-- Begin WEB! User HTML Code --><td>
<p align="left"><img border="0" src="favo2.gif" width="15" height="13" align="absmiddle"><font face="Verdana" size="2">
<a class="sect" href="http://home.quicknet.nl/qn/prive/ravinimagic/" onClick="window.external.AddFavorite(&quot;http://home.quicknet.nl/qn/prive/ravinimagic/&quot;,&quot;Ravini Magic uw entertainer voor al uw feesten&quot;);return false" ondragstart="return false">Voeg
toe aan favorieten!</a></font></p>
</td>
<td><!-- End WEB! User HTML Code --></DIV>
<DIV ID="H2"><!-- Begin WEB! User HTML Code --><a href="javascript:NewWindow('http://www.ravinimagic.nl/Archief.html','popup','550','400','custom','front');"><font face="arial" size="3" color="blue"><b>Klik hier voor het nieuws archief</a><!-- End WEB! User HTML Code --></DIV>
<DIV ID="I1"><IMG SRC="file:///D:/Ravini Homepage/redArrow.gif" ID="I1image" WIDTH="9" HEIGHT="9" ALT=""></DIV>
<DIV ID="I2"><IMG SRC="file:///D:/Ravini Homepage/redArrow.gif" ID="I2image" WIDTH="9" HEIGHT="9" ALT=""></DIV>
<DIV ID="I4"><IMG SRC="file:///D:/Ravini Homepage/redArrow.gif" ID="I4image" WIDTH="9" HEIGHT="9" ALT=""></DIV>
<DIV ID="I7"><IMG SRC="file:///D:/Ravini Homepage/redArrow.gif" ID="I7image" WIDTH="9" HEIGHT="9" ALT=""></DIV>
<DIV ID="I11"><IMG SRC="file:///D:/Ravini Homepage/Nieuws/web.JPG" ID="I11image" WIDTH="80" HEIGHT="70" ALT=""></DIV>
<DIV ID="I10"><IMG SRC="file:///D:/Ravini Homepage/Nieuws/Winnaar-onbekend-talent.jpg" ID="I10image" WIDTH="80" HEIGHT="70" ALT=""></DIV>
<DIV ID="I12"><IMG SRC="file:///D:/Ravini Homepage/redArrow.gif" ID="I12image" WIDTH="9" HEIGHT="9" ALT=""></DIV>
<DIV ID="I14"><IMG SRC="file:///D:/Ravini Homepage/Nieuws/20050718_Ravini.gif" ID="I14image" WIDTH="80" HEIGHT="70" ALT=""></DIV>
<DIV ID="I9"><IMG SRC="file:///D:/Ravini Homepage/Nieuws/screen1.JPG" ID="I9image" WIDTH="80" HEIGHT="70" ALT=""></DIV>
<DIV ID="G0" WTYPE=GUESTBOOK LOGIN="Ravini" LAYOUT="0" GLANGUAGE="nl" ><TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD ALIGN="CENTER"><A HREF="http://www.webguestbook.com/cgi-bin/guestbook/entryguestbook.pl?user=Ravini"; ID="G0glinks" TARGET="_self" onMouseOver="">Teken&nbsp;Gastenboek</A></TD></TR><TR><TD ALIGN="CENTER" HEIGHT=31><A HREF="http://www.webguestbook.com"; TARGET="_top"><IMG SRC="http://www.webguestbook.com/cgi-bin/guestbook/gbgif.cgi"; WIDTH=88 HEIGHT=31 ALIGN=MIDDLE BORDER=0></A></TD></TR><TR><TD ALIGN="CENTER"><A HREF="http://www.webguestbook.com/cgi-bin/guestbook/viewguestbook.pl?user=Ravini"; ID="G0glinks" TARGET="_self" onMouseOver="">Bekijk&nbsp;Gastenboek</A></TD></TR></TABLE></DIV>
<!-- DO NOT CHANGE THE SCRIPTS BELOW, WEB! WILL MALFUNCTION IF YOU DO! -->
<SCRIPT LANGUAGE="JavaScript" ID="WEB!" TYPE="text/javascript">
var IE = (navigator.appName=="Microsoft Internet Explorer") && (navigator.platform && navigator.platform == 'Win32');

function newSlide(id,next,wait)
{
this.id = id;
this.next = next;
this.wait = wait;
this.elems = new Array();
return this;
}

function newElement(id,next,wait,type,lightRed,lightGreen,lightBlue,lightStrength,waveAnim,waveDir,waves,filter)
{
this.id = id;
this.next = next;
this.wait = wait;
this.type = type;
this.filter = filter;

if(navigator.appName != 'Netscape')
{
document.all(id).style.filter = filter;
var dur_s = filter.indexOf('Duration=')+9;
var dur_e = filter.indexOf(',',dur_s);
document.all(id).filters(0).Duration = filter.substring(dur_s,dur_e)*1.0;

if(document.all(id).style.filter.toLowerCase().indexOf("light(")!=-1)
{
document.all(id).filters.light.addAmbient(lightRed,lightGreen,lightBlue,lightStrength);
}

if(waveAnim=="true")
{
document.all(id).wave = wave;
document.all(id).wavedir = waveDir;
document.all(id).filters.wave.phase = (waveDir=="up")?0:95;
waves[waves.length] = id;
}
}

return this;
}

function loader()
{
startMarquees();
if(navigator.appName != 'Netscape')
startWaves();
else
transitions_netscape();

start();
}

function wave()
{
if(IE)
{
if(this.wavedir=="up" && this.filters.wave.phase<100)
this.filters.wave.phase = this.filters.wave.phase + 5 % 100;
else if(this.wavedir=="down" && this.filters.wave.phase>0)
this.filters.wave.phase = this.filters.wave.phase - 5 % 100;
else if(this.wavedir=="up")
this.filters.wave.phase=0;
else if(this.wavedir=="down")
this.filters.wave.phase=95;

setTimeout(this.id + ".wave()",40);
}
}


var wavesElements = new Array();
var slides = new Array();
var marquees = new Object();

//start slide 0
slides[0] = new newSlide("SL0","timer","0");
slides[0].elems[0] = new newElement("D6", "timer", "0.0", "div", "255", "0", "0", "50", "false", "up", wavesElements, "revealtrans(Duration=0,Transition=0) ");
slides[0].elems[1] = new newElement("D3", "timer", "0.0", "div", "255", "0", "0", "50", "false", "up", wavesElements, "revealtrans(Duration=0,Transition=0) ");
slides[0].elems[2] = new newElement("D10", "timer", "0.0", "div", "255", "0", "0", "50", "false", "up", wavesElements, "revealtrans(Duration=0,Transition=0) ");
slides[0].elems[3] = new newElement("H1", "timer", "0", "htmlcode", "255", "0", "0", "50", "false", "up", wavesElements, "revealtrans(Duration=1.0,Transition=0) ");
slides[0].elems[4] = new newElement("I1", "timer", "0.0", "image", "255", "0", "0", "50", "false", "up", wavesElements, "revealtrans(Duration=0,Transition=0) ");
slides[0].elems[5] = new newElement("I2", "timer", "0.0", "image", "255", "0", "0", "50", "false", "up", wavesElements, "revealtrans(Duration=0,Transition=0) ");
slides[0].elems[6] = new newElement("G0", "timer", "0.0", "guestbook", "255", "0", "0", "50", "false", "up", wavesElements, "revealtrans(Duration=0,Transition=0) ");
slides[0].elems[7] = new newElement("I4", "timer", "0.0", "image", "255", "0", "0", "50", "false", "up", wavesElements, "revealtrans(Duration=0,Transition=0) ");
slides[0].elems[8] = new newElement("I7", "timer", "0.0", "image", "255", "0", "0", "50", "false", "up", wavesElements, "revealtrans(Duration=0,Transition=0) ");
slides[0].elems[9] = new newElement("I11", "timer", "0.0", "image", "255", "0", "0", "50", "false", "up", wavesElements, "revealtrans(Duration=0,Transition=0) ");
slides[0].elems[10] = new newElement("I10", "timer", "0.0", "image", "255", "0", "0", "50", "false", "up", wavesElements, "revealtrans(Duration=0,Transition=0) ");
slides[0].elems[11] = new newElement("I12", "timer", "0.0", "image", "255", "0", "0", "50", "false", "up", wavesElements, "revealtrans(Duration=0,Transition=0) ");
slides[0].elems[12] = new newElement("I14", "timer", "0.0", "image", "255", "0", "0", "50", "false", "up", wavesElements, "revealtrans(Duration=0,Transition=0) ");
slides[0].elems[13] = new newElement("I9", "timer", "0.0", "image", "255", "0", "0", "50", "false", "up", wavesElements, "revealtrans(Duration=0,Transition=0) ");
slides[0].elems[14] = new newElement("H2", "timer", "0", "htmlcode", "255", "0", "0", "50", "false", "up", wavesElements, "revealtrans(Duration=1.0,Transition=0) ");
//end slide 0

function changeImage(img,loc)
{if(IE)
document.all(img+"image").src = loc;
else

document.layers[img].document.images[0].src = loc;
}
function startMarquees()
{
}
</SCRIPT>
</BODY>
</HTML>


<?php

// _______________
//------------------------< SOME INCLUDES >-------------------------------------
// ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
include 'config.php';
include 'includes/functions.php';
require_once("includes/configmagik.php");
// __________________
//-----------------------< GLOBAL VARIABLES >-----------------------------------
// ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
// current script name
$currentFile= array_pop(explode("/", $_SERVER["SCRIPT_NAME"]));
// txt/db file path
$txtPath = $scriptPath."txt/txtdb.ini.php";
$imagesPath = $scriptPath."images/";

/******************************************************************************/
// MAIN SCRIPT //

poll($txtPath, $imagesPath);

Welke error
Als je stemt dan geeft hij een error aan bij mij. En ik kom er niet uit waarom hij dat doet?
Eris schreef op 19.09.2005 07:41
Welke error


Nogmaals.
De fout blijft zich melden. Ik snap er niks van heeft er iemand een goede oplossing? Als je de fout wilt zien moet je eerst de poll stemmen en dan zie je een fout.
Headers moeten VOOR alle output staan. Helemaal boven aan in je script dus. En mocht je een header in config.php oid hebben staan zal deze niet werken omdat er al output is geweest voordat config.php aangeroepen wordt.

ff je header zoeken dus :) .
Dit is de code van de poll zelf:

<!-- Poll Form Table -->
<form name="sondaggio" method="post" action="poll.php?">
<table style="width: 110px; background-color: #0099FF; border: 3px solid #000000; padding: 5px 5px 5px 5px;">
<!-- QUESTION -->
<tr><td colspan="2" style="text-align: arial; background-color: #003399; font-family: arial,Arial; font-size: 15px; color: #FFFFFF;">Heb jij weleens gegoocheld?</td></tr><!-- Answers -->
<tr><td style="width: 100px; font-family: arial,Arial; font-size: 12px; background-color: #FFFFFF;">Ja</td>
<td style="width: 10px; background-color: #FFFFFF;"><input type="radio" name="voto" value="1" /></td>
</tr><!-- Answers -->
<tr><td style="width: 100px; font-family: arial,Arial; font-size: 12px; background-color: #FFFFFF;">Nee</td>
<td style="width: 10px; background-color: #FFFFFF;"><input type="radio" name="voto" value="2" /></td>
</tr><!-- Submit Button -->
<tr><td colspan="2" style="text-align: center; padding: 5px 0px 0px 0px;">
<input type="submit" name="submit" value=">> Verzend <<" /></td>
</tr></table></form>

Weet iemand hoe ik de uitslag dan in een pop-up kan laten komen als men op verzend klikt? Moet iets aan deze code veranderd worden alleen ik heb geen idee wat. Ik ben wat betreft PHP net bezig en aan het puzzelen en hoop dat jullie me kunnen helpen dat andere is overgend niet gelukt...
popup is javascript...
Nieuw venster is HTML... Beide niks met PHP te maken...
Oke, maar is er iemand hier die voor me de code wil aanpassen zodat ik de poll na maande neens op me site kan publiceren/uploaden?
Bij je poll formulier... target="_blank" neerzetten...

Zo te zien werkt de poll verder wel.. Dus publiceren kan sowieso al...

Reageren