[CLUG-chat] How do I pass data across pages in PHP?

Charles Oertel charles at finebushpeople.net
Sat Sep 3 17:08:09 SAST 2005


Doug Falconer wrote:
> How can I pass data from one php page to another in this situation?
> 
> <?php
> 	if (empty($_POST['Surname']))
> 	{
> 		$_POST['Status'] = "No surname";	// This doesn't survive
> 		$_GET['Status'] = "No surname";		// Neither does this
> 		redirect('edit-applicant.php');
> 	}
> ?>

redirect('edit-applicant.php?Status=No%20surname');

Redirect might take parameters that specify variables to be passed too - 
I'm too involved to look them up now.

regards
--
Charles Oertel
FineBushPeople.net
tel: 021 701 8231
fax: 021 701 3338






More information about the Clug-chat mailing list