Page 1 of 1

How to get first page??

Posted: Sun Sep 02, 2007 10:25 am
by aris1234
Hi All...


my page sample like this :

i have student.php, in this code have :

Code: Select all

<form action="proces.php" Method="POST">
   .....
   .....
  <input type="submit" value="save">
</form>
in proces.php have code to redirect to student.php
like this : header( 'Location: student.php');

after klik save in student.php i have get that page (student.php) but that page is blank

how get that page (student.php) ???

please help me..i'm nubie :oops:

Posted: Sun Sep 02, 2007 10:27 am
by volka
please try

Code: Select all

error_reporting(E_ALL);
ini_set('display_errors', true);
header('Location: student.php');

Posted: Sun Sep 02, 2007 2:57 pm
by aceconcepts
Instead of using process.php you could submit the form to the itself (student.php).

At the top of you script you can check whether a user has clicked "Save" like this:

Code: Select all

if(isset($_POST['submit']))
Inseide the IF statement you can validate the form values.