Jump to content

need help in php variable


doforumda

Recommended Posts

i have a php variable on one page

$lastId = mysql_insert_id($db);
echo $lastId;

 

i want to send this variable and the value in it to second page when i click on submit button

 

i already tried this but it is not working

$lastId = $_POST["lastId"];

 

this displays this error

 

Notice: Undefined index: lastId in D:\wamp\www\dynamic\quiz2action.php on line 30

 

how can this be solved

Link to comment
https://forums.phpfreaks.com/topic/177900-need-help-in-php-variable/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.