How to pass the value of variables between php files

Problems with the Windows version of XAMPP, questions, comments, and anything related.

How to pass the value of variables between php files

Postby wasabihowdi » 06. March 2008 04:14

Hey guys,

I would like to know if it is possible to pass a variable from, let's say. A.php to B.php? If possible, how should I do it?

Thanks,


wasabihowdi
wasabihowdi
 
Posts: 11
Joined: 24. January 2008 06:23

Postby Wiedmann » 06. March 2008 10:33

pass a variable from, let's say. A.php to B.php?

- You can add the variable as parameter to the link ("http://./b.php?var=value")
http://de.php.net/manual/en/language.va ... ternal.php

- You can use sessions.
http://de.php.net/manual/en/ref.session.php
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 209 guests