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

Php - mysql select?
hi, i have this code:

Code: <?php
session_start();
// dBase file
include &quo

Writting a script to arrange images........ need some help
Ok so here is the link

http://hmtotc.com/dev/projects/vrassociates/jeweler_dev/admin/index.ph

insert quotes
Hi,

I have an output like this:
Code: john,18,Cancer
How can I change this to
Code:

user administration
Dear @all,

what I have to do to set the user defaults for new users. At the moment I woul

Any meaningful project for a new C++ programmer?
I want to do some meaningful program, so I can help myself to learn

Assume I know the fol

Using Windows message as a Handle
Hi,

I am writing one of my first multithreaded programs.

In one of the thread,

Inter Company -- Resources Related Billing (Services Industry)
Hello,

My company has a scenario where:
Company A bills Company C for INTER (cross

how to remove in php string display
My code is $message="We're looking at developing our website."; $body= "My mess

Procedural to OOP
ohn Kleijn said that to avoid writing "crappy code", we should learn OOP and common OO pri

adding 0 to numbers
Hey guys i need to create a 00001 number in a loop. Is there a better way of forcing a 5 digit numbe

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