klein php vraagje.

Gestart doorFreestyle2 reacties14 weergaven

3 berichten · pagina 1 van 1

Freestyle

Lid · Topicstarter

Berichten
7.681
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Als je iets wilt oproepen op deze manier: $tekst. hoe zorg ik er dan voor dat dat op geroepen word.

dat moet toch zo:

[COLOR= #0000BB]<?php
$_STRING[/COLOR] [COLOR= #007700]=>[/COLOR] tekst[COLOR= #007700].[/COLOR]
?>


en moet ik dat ook include op de pagina(s) waar ik wil dat ik zo kan typen
bijvoorbeeld zo:

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


alvast bedankt.
0
Berichten
515
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
het kan heel simpel

[COLOR= #0000BB]<?php

$tekst[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]Hoooi[/COLOR][COLOR= #007700];[/COLOR]

[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$tekst[/COLOR][COLOR= #007700];[/COLOR]

?>


Je kan bijvoorbeeld in string.php dit doen:

[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #FF8000]//string.php[/COLOR]
[COLOR= #0000BB]$txtformulier[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]Vul dit formulier helemaal in[/COLOR][COLOR= #007700];[/COLOR]


[COLOR= #FF8000]//index.php ??? zeg maar wat[/COLOR]

[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]string.php[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$txtformulier[/COLOR][COLOR= #007700];[/COLOR]

?>
0
Freestyle

Lid · Topicstarter

Berichten
7.681
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Justafool schreef:
het kan heel simpel
[COLOR= #0000BB]<?php

$tekst[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]Hoooi[/COLOR][COLOR= #007700];[/COLOR]

[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$tekst[/COLOR][COLOR= #007700];[/COLOR]

?>


Je kan bijvoorbeeld in string.php dit doen:

[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #FF8000]//string.php[/COLOR]
[COLOR= #0000BB]$txtformulier[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]Vul dit formulier helemaal in[/COLOR][COLOR= #007700];[/COLOR]


[COLOR= #FF8000]//index.php ??? zeg maar wat[/COLOR]

[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]string.php[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$txtformulier[/COLOR][COLOR= #007700];[/COLOR]

?>


ooja! bedankt!
ook bedankt voor snelle reactie!
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