Help, please and please really need the help from you....
I have drop box and want to put value into text box in the same page after i selected one of value from drop box.
however, how can i post this value into the same page and put the value in text box...
coding is the following:
<?php
// declare the session
session_save_path("session_data");
session_start();
session_register("srh_cond1");
// if the submit button has been clicked, please check from here
if ($HTTP_POST_VARS["btn_go"]!="")
{
If ( $HTTP_POST_VARS["srh_txt1"] = "" )
$srh_cond1 = $D_ALL;
else $err_msg = "The list is full";
}
<form action="rates.asp" method="post" name="frmPass">
<select size="1" name="D_ALL" tabindex="1">
<option value="">NONE</option>
<option value="a">a</option>
<option value="b">b</option>
</select>
<input type="submit" value="Select ->" name="btn_go" tabindex="2"></font></td>
<input type="text" name="srh_txt1" size="20" value="<?php echo $srh_cond1; ?>" tabindex="3">
it's meaning that when i click "btn_go" button, it should go the same page the start verify the button has clicked or not.. how can i verify the button has been clicked??
thank u so much.. i stop here for a week...