Yes I changed that, but now it always echoes EngP=0 "Mark Heintz Php Mailing Lists" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Thu, 27 Jun 2002, Haddad Said wrote: > > > in query.php i have this piece of code; > > > > echo "<form action='test2.php' action='post'> > > <select name='language'> > > <option value='0'selected='yes'>one</option> > > <option value='1'>two</option> > > </select> > > <input type=text name=query> > > <input type=submit name=submit> > > </form>"; > > > > and in test2.php i have this; > > > > if ($_POST['language'] = 1) > > {$lang = "EngP=1";} > > else {$lang = "EngP=0";} > > echo $lang ; > > > > But it always echoes EngP=1 no matter what I choose, what is wrong here?? > > > if ($_POST['language'] == 1) > > > You have an assignment operator instead of a comparison in your if > statement. > > mh. >
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php