past variable

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Lphp
Forum Commoner
Posts: 74
Joined: Sun Jun 26, 2011 9:56 pm

past variable

Post by Lphp »

I have a variable want to past , how?

Code: Select all

while($i<$count){
 $i++;
 $oversea_period='oversea_period'.$i;//ok in here
<select name="<?php echo '.$oversea_period.'; ?>">not in here ??
}
on other page
I have
$sql.= "oversea_period1='".$_POST[?]."', "; what in here ??
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: past variable

Post by social_experiment »

Lphp wrote:what in here ??
It depends on what value is inside your variable ($oversea_period), if the value is 'data' then $_POST['data'] will hold the information.
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
Post Reply