[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Webmasterplein.net • Toon onderwerp - Variabele meegeven voor include
aan alle goede dingen komt een eind, webmasterplein.net 2003 - 2013
wij danken jullie voor al mooie momenten die dankzij dit forum ontstonden - Derk, Rutger en Stef

Variabele meegeven voor include

Je komt er niet helemaal uit bij het scripten? Übergoede functie geschreven? Alles met betrekking tot scripting, kun je hier terecht.

Variabele meegeven voor include

Berichtdoor Douwe 666 » 15 apr 2007 14:36

Hoi,

Als ik een pagina include, kan ik dan een variabele in de te includen pagina zetten, die op het moment dat de pagina wordt geinclude gaat gelden, en als ik dan een andere pagina include dat hij in de variabele in die van de nieuwe pagina verandert? Question

... Klik hier ...
Avatar gebruiker
Douwe 666
wmpr
 
Berichten: 299
Geregistreerd: 27 maart 2007 17:07
Woonplaats: Zeist

Re: Variabele meegeven voor include

Berichtdoor Derk » 15 apr 2007 14:47

Afbeelding
Avatar gebruiker
Derk
Beheerder
Beheerder
 
Berichten: 12634
Geregistreerd: 27 nov 2003 19:50
Woonplaats: Houten

Re: Variabele meegeven voor include

Berichtdoor Douwe 666 » 15 apr 2007 14:49

Ok die ken ik, maar als je geen variabele in de url zet, kan het dan ook?

... Klik hier ...
Avatar gebruiker
Douwe 666
wmpr
 
Berichten: 299
Geregistreerd: 27 maart 2007 17:07
Woonplaats: Zeist

Re: Variabele meegeven voor include

Berichtdoor Derk » 15 apr 2007 14:51

Je bedoelt dat je in mijn voorbeeld index.php aanroept, en dat er toch Ja! komt te staan, zonder dat je die ? erachter zet en zonder pagina2.php aan te passen?
Afbeelding
Avatar gebruiker
Derk
Beheerder
Beheerder
 
Berichten: 12634
Geregistreerd: 27 nov 2003 19:50
Woonplaats: Houten

Re: Variabele meegeven voor include

Berichtdoor Douwe 666 » 15 apr 2007 14:55

pagina2.php juist wel aanpassen. Ik zal even uitleggen waarvoor het nodig is:
In inex.php moet de titel veranderen, als ik een andere pagina include, en toen dacht ik: als je in de te includen pagina bijvoorbeeld $titel = 'links' zet, dat de titel van de site links wordt.

... Klik hier ...
Avatar gebruiker
Douwe 666
wmpr
 
Berichten: 299
Geregistreerd: 27 maart 2007 17:07
Woonplaats: Zeist

Re: Variabele meegeven voor include

Berichtdoor Moonstrike » 15 apr 2007 15:08

Avatar gebruiker
Moonstrike
wmpr
 
Berichten: 3287
Geregistreerd: 22 apr 2006 14:40
Woonplaats: Lui lekker land 8)

Re: Variabele meegeven voor include

Berichtdoor Douwe 666 » 15 apr 2007 15:11


... Klik hier ...
Avatar gebruiker
Douwe 666
wmpr
 
Berichten: 299
Geregistreerd: 27 maart 2007 17:07
Woonplaats: Zeist

Re: Variabele meegeven voor include

Berichtdoor Derk » 15 apr 2007 15:17

Afbeelding
Avatar gebruiker
Derk
Beheerder
Beheerder
 
Berichten: 12634
Geregistreerd: 27 nov 2003 19:50
Woonplaats: Houten

Re: Variabele meegeven voor include

Berichtdoor Douwe 666 » 15 apr 2007 16:10

Dat is de rede dat ik dit forum starte Wink , daar een oplossing voor vinden. Question

... Klik hier ...
Avatar gebruiker
Douwe 666
wmpr
 
Berichten: 299
Geregistreerd: 27 maart 2007 17:07
Woonplaats: Zeist

Re: Variabele meegeven voor include

Berichtdoor Rik » 15 apr 2007 16:18

Eerst het bestand includen en dan pas $title echo'en? Question
Avatar gebruiker
Rik
wmpr
 
Berichten: 1576
Geregistreerd: 11 jun 2005 17:59

Re: Variabele meegeven voor include

Berichtdoor Douwe 666 » 15 apr 2007 16:45

ja, maar dan kan ik de tekst die ook in dat bestand staat niet meer laten zien Question , want die komt sowieso na de titel.

... Klik hier ...
Avatar gebruiker
Douwe 666
wmpr
 
Berichten: 299
Geregistreerd: 27 maart 2007 17:07
Woonplaats: Zeist

Re: Variabele meegeven voor include

Berichtdoor Derk » 15 apr 2007 17:44

Afbeelding
Avatar gebruiker
Derk
Beheerder
Beheerder
 
Berichten: 12634
Geregistreerd: 27 nov 2003 19:50
Woonplaats: Houten

Re: Variabele meegeven voor include

Berichtdoor Rik » 15 apr 2007 19:01

Avatar gebruiker
Rik
wmpr
 
Berichten: 1576
Geregistreerd: 11 jun 2005 17:59

Re: Variabele meegeven voor include

Berichtdoor Douwe 666 » 15 apr 2007 19:09

tnx dit werkt al beter, ik kan natuurlijk ook de tekst in een variabele zetten, en gewoon alle variabelen aan het begin van de pagina laden.

... Klik hier ...
Avatar gebruiker
Douwe 666
wmpr
 
Berichten: 299
Geregistreerd: 27 maart 2007 17:07
Woonplaats: Zeist

Re: Variabele meegeven voor include

Berichtdoor Douwe 666 » 16 apr 2007 12:59

ob_start() is toch het beste, dan kan ik tenminste alle tekens gebruiken.
Heeft iemand een idee hoe ik een enkele quote ( ' ) kan echo'en Question

... Klik hier ...
Avatar gebruiker
Douwe 666
wmpr
 
Berichten: 299
Geregistreerd: 27 maart 2007 17:07
Woonplaats: Zeist

Re: Variabele meegeven voor include

Berichtdoor libia » 16 apr 2007 15:29

ola, un cerveza por favor.


of
Avatar gebruiker
libia
wmpr
 
Berichten: 4149
Geregistreerd: 23 okt 2005 14:14
Woonplaats: Alphe!!

Re: Variabele meegeven voor include

Berichtdoor Rik » 16 apr 2007 15:44

Avatar gebruiker
Rik
wmpr
 
Berichten: 1576
Geregistreerd: 11 jun 2005 17:59

Re: Variabele meegeven voor include

Berichtdoor libia » 16 apr 2007 16:58

ola, un cerveza por favor.


of
Avatar gebruiker
libia
wmpr
 
Berichten: 4149
Geregistreerd: 23 okt 2005 14:14
Woonplaats: Alphe!!

Re: Variabele meegeven voor include

Berichtdoor Remi » 16 apr 2007 17:05

niet logisch,
ik probeer altijd zoveel mogelijk aan het begin van het script te doen. En daarna gebrui ik gewoon <?=$var?>
Avatar gebruiker
Remi
wmpr
 
Berichten: 3010
Geregistreerd: 04 apr 2006 15:22

Re: Variabele meegeven voor include

Berichtdoor libia » 16 apr 2007 17:25

ola, un cerveza por favor.


of
Avatar gebruiker
libia
wmpr
 
Berichten: 4149
Geregistreerd: 23 okt 2005 14:14
Woonplaats: Alphe!!

Re: Variabele meegeven voor include

Berichtdoor Douwe 666 » 17 apr 2007 17:12

Tnx.
Gaat trouwens niet buiten PHP anders zou ik het niet vragen... Razz

... Klik hier ...
Avatar gebruiker
Douwe 666
wmpr
 
Berichten: 299
Geregistreerd: 27 maart 2007 17:07
Woonplaats: Zeist


Keer terug naar PHP, ASP, SQL



cron