php vraag.

Gestart doorFreestyle2 reacties32 weergaven

3 berichten · pagina 1 van 1

Freestyle

Lid · Topicstarter

Berichten
7.681
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik heb een vraagje.
als ik de php tags () gebruik. kan ik daar in dan bijvoorbeeld een div plaatsen (
)

voorbeeld:

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]pagina.php[/COLOR][COLOR= #007700]);

<[/COLOR]div id[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"test"[/COLOR][COLOR= #007700]>[/COLOR]

[URL="http://www.php.net/include"]include[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]pagina2.php[/COLOR][COLOR= #007700]);[/COLOR]
?>

alvast bedankt.
0
Berichten
63
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
nee, dit gaat niet werken omdat div geen php code is.

een oplossing is:

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]pagina.php[/COLOR][COLOR= #007700]);[/COLOR]
?>
<div id="test">
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]pagina2.php[/COLOR][COLOR= #007700]);[/COLOR]
?>


of

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]pagina.php[/COLOR][COLOR= #007700]);[/COLOR]

[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<div id="test">[/COLOR][COLOR= #007700];[/COLOR]

[URL="http://www.php.net/include"]include[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]pagina2.php[/COLOR][COLOR= #007700]);[/COLOR]
?>
0
Freestyle

Lid · Topicstarter

Berichten
7.681
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
oke bedanktyummie
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