Pagina index.php?

Gestart doorTwany89 reacties123 weergaven

90 berichten · pagina 6 van 6

Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
Probeer en leer wink
0
Twany

Lid · Topicstarter

Berichten
1.863
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Heb het al smile
[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"hoi"[/COLOR][COLOR= #007700];[/COLOR] ?>


Nu wil ik ahref proberen (link) kan ik dan gewoon de normale ahref code gebruiken?

Als ik dit invul krijg ik error

[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<a href="[/COLOR]index[COLOR= #007700].[/COLOR]php[COLOR= #DD0000]">Test</a>"[/COLOR][COLOR= #007700];[/COLOR] ?>


Error

Parse error: syntax error, unexpected T_STRING, expecting , or ; in /home/carnaval/domains/carnaval11.nl/public_html/pokemon/spel/home.php on line 87
0
Berichten
2.609
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Tvl schreef:
Heb het al smile
[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"hoi"[/COLOR][COLOR= #007700];[/COLOR] ?>
Nu wil ik ahref proberen (link) kan ik dan gewoon de normale ahref code gebruiken?

Als ik dit invul krijg ik error

[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<a href="[/COLOR]index[COLOR= #007700].[/COLOR]php[COLOR= #DD0000]">Test</a>"[/COLOR][COLOR= #007700];[/COLOR] ?>


Error

Parse error: syntax error, unexpected T_STRING, expecting , or ; in /home/carnaval/domains/carnaval11.nl/public_html/pokemon/spel/home.php on line 87


Zo?

[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<a href=index.php>Test</a>"[/COLOR][COLOR= #007700];[/COLOR] ?>
0
Twany

Lid · Topicstarter

Berichten
1.863
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ja, dat had ik nu door.
Hoe kan ik dan maken dat als je op een pokemon klikt je dan
pokedex.php?spel=ruby&pokemon=bulbasaur bijv.
0
Berichten
2.609
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Op een img? En gewoon url invullen?
0
Twany

Lid · Topicstarter

Berichten
1.863
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ja maar hoe maak ik de link dat het pokedex.php?spel=ruby&pokemon=balbasaur
moet ik dan op de pagina ruby hetzelfde script zetten als pokedex.php?
0
Berichten
2.609
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
pokedex.php include? In je index?
0
Twany

Lid · Topicstarter

Berichten
1.863
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Dit heb ik nu allemaal goed.
Nu heb ik een vraag, hoe kan ik ipv pokedex.php?spel=rby
in
pokedex?spel=rby
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
Tvl schreef:
Heb het al smile
[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"hoi"[/COLOR][COLOR= #007700];[/COLOR] ?>
Nu wil ik ahref proberen (link) kan ik dan gewoon de normale ahref code gebruiken?

Als ik dit invul krijg ik error

[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<a href="[/COLOR]index[COLOR= #007700].[/COLOR]php[COLOR= #DD0000]">Test</a>"[/COLOR][COLOR= #007700];[/COLOR] ?>


Error

Parse error: syntax error, unexpected T_STRING, expecting , or ; in /home/carnaval/domains/carnaval11.nl/public_html/pokemon/spel/home.php on line 87


Single-quotes gebruiken om je echo-functie is gewoon het beste. Als je goed keek zag je dat je double-quotes gebruikte in je HTML, terwijl je echo ook uit double-quotes bestond, en dat botst met elkaar...

Als je valide HTML wilt gebruiken kan je wat je nu hebt beter omdraaien.

[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<a href="index.php">Test</a>[/COLOR][COLOR= #007700];[/COLOR] ?>


toevoeging op 13 juni 2012, 121402:
Tvl schreef:
Dit heb ik nu allemaal goed.
Nu heb ik een vraag, hoe kan ik ipv pokedex.php?spel=rby
in
pokedex?spel=rby

Hoe bedoel je?

wil je de .php extentie wegwerken?
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
FollowSymLinks is volgens mij niet eens nodig wink
0
Jvdw

Lid

Berichten
4.321
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Aarclay schreef:
FollowSymLinks is volgens mij niet eens nodig wink
Het kan welbiggrin
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
Kan je net zo goed Indexes meegeven, of een allow waarin je iedereen toestaat... 8)7
Followsymlinks staat verder los van het kunnen verbergen van de extentie.
0
Twany

Lid · Topicstarter

Berichten
1.863
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Met die FollowSymLinks is het gelukt, thanks!
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
Topic al gelezen hypocrite?
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