need help in php variable


Posted on 16th Feb 2014 07:03 pm by admin

i have a php variable on one page
Code: [Select]$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
Code: [Select]$lastId = $_POST["lastId"];
this displays this error

Code: [Select]Notice: Undefined index: lastId in D:wampwwwdynamicquiz2action.php on line 30
how can this be solved

No comments posted yet

Your Answer:

Login to answer
238 Like 8 Dislike
Previous forums Next forums
Other forums

what business processes?
Hi,

A general question. What business processes (like OTC - Order to Cach, P2P, R2R etc)

Display a default image
I am trying to display generic image for items that don't have one, but I can't get it to display.

how to make database item unique
Hey guys,

is it possible to do this:

I have the database item $title being pulled for

first few characters only
hi, does anyone know how to use PHP to take the first few words of a text and limit them? i have see

MSSQL/PHP
I am tryint to setup a webapplication developed in PHP, Apache2.0 and SQLServer2000 as backend which

Having a problem get the selected item from a drop down menu
I have been looking at this for days now.

I have a drop down menu that get it's values from a

need to apply an if/else statement to Tim Thumb script
Not sure how to work this. I essentially want to call a variety of image sizes based on which style

Sort a two dimensional array.
Hi. I've set up a two dimensional array that reads as follows:

Code: $modifiedData = array(

Tree Menu
Hi guys,

Can anyone help me making a tree navigation system? I have a site where I'm allowin

pageination not working right... coping images over 4 pages
Code: <?php //This code will obtain the required page number from the $_GET array. Note that

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash