hi guys...
it seems doesn cari the id that autocreated bye prevoius insert ..therefore here i post the code for firs page which is page1.php. so my point is just to find the similar fuction as mysql_insert_id in postgresql..

*in page2.php i will put hidden field for the profileid..tq.
<?php
$dbconn = mysql_connect("localhost", "root", ""

or die ("Could not connect to database"

;
mysql_select_db("jjj"

or die ("could not open database"

;
if($Submit=="Submit"

{
$query=mysql_query("insert into table1 (nama,ic) values ('$nama','$ic')"

or die ("could not select"
//here is what i stuck in postgressql..
$profileid=mysql_insert_id();
header("Location:
profileid=$profileid"

;
exit;
}
?>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="<?php echo $PHP_SELF; ?>">
<p>nama :
<input type="text" name="nama">
</p>
<p>ic :
<input type="text" name="ic">
</p>
<p>
<input type="submit" name="Submit" value="Submit">
</p>
</form>
</body>
</html>
<?php
mysql_close($dbconn) or die ("could not close database"

;
?>