On Friday 23 March 2007 15:45, Dan Shirah wrote:
> Okay, I feel like the correct answer to this is about 2mm back in my grey
> matter.
>
> 1. I have a query that pulls the last row number when a newly inserted
> record is added:
>
> $maximum="SELECT MAX(payment_id) FROM payment_request";
>   $max_result=mssql_query($maximum);
>   while($max=mssql_fetch_row($max_result)){
>   }
>   $max_id = $max[0];
>
> 2. I have multiple selections for the user to pick, but regardless of what
> they choose I want the $max_id variable to be passed to the next page.
>
> 3.  Would I go about this by assigning $max_id to a hidden field like
> below?
>
> <input type="hidden" value="<?php echo "$max_id"; ?>" size="5"
> maxlength="10" name="max_id" />
>
> 4.  And then to retrieve this value on my next page just get it out of
> $_POST['max_id']  ??
>
> Does that all sound correct?

If it works correctly it probably is... 

-- 
---
Børge
Kennel Arivene 
http://www.arivene.net
---

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to