p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

beginning_php thread: Step By Step Files


Message #1 by "Sebastian A." <sebi@x...> on Fri, 5 Apr 2002 12:18:59 +0200
Lately I have noticed many scripts that all consist of one file even though
they create the appearance of many pages. For example, you would open
setup.php and a form would appear. Then after you complete the form a new
page appears with the results of your form, however the URL is still
setup.php. So basically you can make complicated forms span only one file
instead of having separate file to gather, display and save the data, how is
this done?

Message #2 by Empier4552@a... on Fri, 5 Apr 2002 07:48:38 EST
--part1_14c.bc0e5d2.29def726_boundary
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit

In a message dated 4/5/2002 5:28:38 AM Eastern Standard Time, sebi@x... 
writes:


> Lately I have noticed many scripts that all consist of one file even though
> they create the appearance of many pages. For example, you would open
> setup.php and a form would appear. Then after you complete the form a new
> page appears with the results of your form, however the URL is still
> setup.php. So basically you can make complicated forms span only one file
> instead of having separate file to gather, display and save the data, how 
> is
> this done?
> 
A good example in the book is the upload script. Its using PHP_SELF. Read 
that it should help you.


  Return to Index