SLOTJE

Gestart doorChristum10 reacties37 weergaven

11 berichten · pagina 1 van 1

Christum

Lid · Topicstarter

Berichten
921
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik ben op dit moment bezig aan een website en nu kom ik er achter dat hier de hele if($_GET niet werkt wat is het probleem?

[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"page"[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"titel"[/COLOR][COLOR= #007700]){[/COLOR] ?>
hier je info dat weg moet blijven
[COLOR= #0000BB]<?php[/COLOR] [COLOR= #007700]}[/COLOR]?>


en dan zou dit vervolgens moeten werken: www.mijnsite.nl?page=titel maar hij geeft alleen maar een error aan met de lijn er in confused wat is het probeem wat overal werkt hij behalve hiero

Het probleem is opgelost smile dus een slotje aub!
0
Berichten
2.692
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
En wat is de error emo?
0
Berichten
13.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Misschien stond de php nog open, dus was
0
Christum

Lid · Topicstarter

Berichten
921
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Notice: Undefined index: page in /home/menpowers/domains/menpowers.s2.one2xs.com/public_html/menu/p_home.php on line 10


Ik vind hem nogal vaag confused
@sjoerd, de php stond nog niet open yummie anders geeft adobe dit trouwens ook aan wink
0
Berichten
1.916
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Probeer dit eens;

[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"page"[/COLOR][COLOR= #007700]]) ==[/COLOR] [COLOR= #DD0000]"titel"[/COLOR][COLOR= #007700]){[/COLOR] ?>
hier je info dat weg moet blijven
[COLOR= #0000BB]<?php[/COLOR] [COLOR= #007700]}[/COLOR] ?>
0
Miel

Lid

Berichten
4.462
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Dat gaat niet werken.yummie Isset geeft een boolean terug geloof ik.
De error heeft niks te maken met deze code. Plaats je hele code eens.
0
Christum

Lid · Topicstarter

Berichten
921
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
@ matthias, dan geeft adobe al een error aan dat dit een onmogelijke manier is.

en me site geeft nu dit:

Parse error: syntax error, unexpected T_IS_EQUAL, expecting , or ) in /home/menpowers/domains/menpowers.s2.one2xs.com/public_html/menu/p_home.php on line 10


De hele code die ik op dit moment heb is alleen dit:

[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]verzonden[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"contact"[/COLOR][COLOR= #007700]){[/COLOR] ?>
<div id="center">
 <div class="c_groen"> <p class="top">&nbsp;Het formulier is verzonden (Contact formulier)</p> </div>
 <div class="mid"> <p class="text"><table width="98%"><tr><td>
Het contact formulier is sucsesvol verzonden naar ons.<br />
Wij zullen binnen 7 dagen andwoorden indien het nodig is.<br />
 </td></tr></table>
 </p>  </div>
 <div class="onder"> </div>
</div>
[COLOR= #0000BB]<?php[/COLOR] [COLOR= #007700]}[/COLOR]?>
0
Christum

Lid · Topicstarter

Berichten
921
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Nickjexx schreef:
hiervoor heb ik al een script:

[COLOR= #0000BB]<?php
    $page[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]p[/COLOR][COLOR= #007700]];[/COLOR]
      [URL="http://www.php.net/if"]if[/URL][COLOR= #007700](![/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$page[/COLOR][COLOR= #007700]))
      {[/COLOR]
        [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"menu/p_home.php"[/COLOR][COLOR= #007700]);
      }[/COLOR]
      [URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/file_exists"]file_exists[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700].[/COLOR] [COLOR= #0000BB]$page[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #DD0000]".php"[/COLOR][COLOR= #007700]))
      {[/COLOR]
        [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]""[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$page[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #DD0000]".php"[/COLOR][COLOR= #007700]);
      }[/COLOR]
      [URL="http://www.php.net/else"]else[/URL]
      [COLOR= #007700]{[/COLOR]
        [URL="http://www.php.net/print"]print[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"Hier me error"[/COLOR][COLOR= #007700]);
      }[/COLOR]
    ?>


En uiteindelijk wil ik dit hebben: www.mijnsite.nl?p=menu/p_home&formulier=contact
0
Berichten
13.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Lasertools schreef:
@ matthias, dan geeft adobe al een error aan dat dit een onmogelijke manier is.

en me site geeft nu dit:
Parse error: syntax error, unexpected T_IS_EQUAL, expecting , or ) in /home/menpowers/domains/menpowers.s2.one2xs.com/public_html/menu/p_home.php on line 10


De hele code die ik op dit moment heb is alleen dit:

[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]verzonden[/COLOR][COLOR= #007700]]) &&[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]verzonden[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"contact"[/COLOR][COLOR= #007700]){[/COLOR] ?>
<div id="center">
 <div class="c_groen"> <p class="top">&nbsp;Het formulier is verzonden (Contact formulier)</p> </div>
 <div class="mid"> <p class="text"><table width="98%"><tr><td>
Het contact formulier is sucsesvol verzonden naar ons.<br />
Wij zullen binnen 7 dagen andwoorden indien het nodig is.<br />
 </td></tr></table>
 </p>  </div>
 <div class="onder"> </div>
</div>
[COLOR= #0000BB]<?php[/COLOR] [COLOR= #007700]}[/COLOR]?>
0
Christum

Lid · Topicstarter

Berichten
921
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
@sjoerd, die code werkt smile hij geeft geen error aan op zowel adobe als op de site thnx man.

EDIT:
Er mag van mij wel een slotje op het probleem is nu opgelost smile
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren