austine_power007 Posted December 10, 2006 Share Posted December 10, 2006 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 menuthen 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 More sharing options...
fert Posted December 10, 2006 Share Posted December 10, 2006 [code]<?php$var=5;?><html><body><?phpecho $var;?>[/code]this will output 5 Link to comment https://forums.phpfreaks.com/topic/30092-pass-values-from-one-php-tag-to-another/#findComment-138338 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.