This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > August 2004 > Re: Problem/question with a session variable





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: Problem/question with a session variable
Joe {RoastHorse}

2004-08-11, 7:15 pm

you can put anything in a session variable. using PHP you would add the
id with:

$_SESSION["mysql_id"] = mysql_insert_id();

though instead of updating your db tables page by page i would carry the
data from page to page in session vars or hidden fields then update all
the db tables on the last submit.

joe




mtarby wrote:

> I've got a two part application form I created in Dreamweaver. Once the user
> completes part 1, the infoinserts into a database table where I've got an
> auto-number applicant_id field.
>
> My question - I want the applicant_id to carry over to the next page and
> insert into the next database table.
>
> Since its an auto number field, can I use this as session variable, or does
> the session variable need to be a field from the form where the applicant
> enters information directly on the form?
>

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews