List Info

Thread: Re: Re: How to get Form variables on a muli-page database query




Re: Re: How to get Form variables on a muli-page database query
country flaguser name
United States
2007-09-11 00:37:19

Try to use $_SESSION_VARIABLES.....or have case statement for every action in the form

a_nassim < a_nassim%40yahoo.com">a_nassimyahoo.com> wrote: And i am completely bad in english, bat i think that the problem
with your query is the method in your Form, then if you've choose
Post in the tag( <form action=&quot;page2.php" method=&quot;post&quot;>
<input type=";text" name=";price";>.......) in the first page, the
variable in the second page must be like $_POST[&quot;price&quot;], if you
right only $name, the script will not identify it.

For get method, the variable must be like $_GET[&quot;variable&quot;].

I think this is your problem.

--- In php-objects%40yahoogroups.com">php-objectsyahoogroups.com, "hanif1954" <hanif1954...>
wrote:
>
> Hi,
>
> I am completely new to php programing. I am using a script that
takes
> data from a form and processes another php page to qyery the
database
> based on input from the form. My first page looks ok. But when I
go to
> the 2nd page of the query, the form data is lost and query does
not
> display any record. If I do not use a Form and hard code the query
> parameters, the query works fine.
>
> Please help me.
>
> Best regards
>
> Hanif
>





---------------------------------
Yahoo! oneSearch: Finally, mobile search that gives answers, not web links.

[Non-text portions of this message have been removed]

__._,_.___
.

__,_._,___
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )