Jump to content

Pass values from one php tag to another


austine_power007

Recommended Posts

I have two <? ?> php tag in a HTML and i want to pass the value from one tag to another its like search ...user select from the drop down menu then its value will be sent to the another php tag so that the page will show the result is different textboxes. [b]so how can i pass the value?[/b] here is sample

[code]<?
include("connect_db.php");
$name=($_SESSION["name"]);
$query = odbc_exec($odbc, "SELECT title FROM task WHERE dev_name = '$name' ") or die ("Error:44004:Can't Query");

if ($query)
          {
                print "<SELECT NAME='title'>";
                while ($row = odbc_fetch_array($query))
                {
                    print "<OPTION VALUE='".$row["title"]."'>".$row["title"]." </OPTION> ";
                }
                print "</SELECT>";
          }
             
  ?>[/code]

there is a submit button after select the value from drop down menu

then i need to show the values inside a textboxes ........i m nut in php help me
Link to comment
https://forums.phpfreaks.com/topic/30092-pass-values-from-one-php-tag-to-another/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.