Page 1 of 1

how to make this

Posted: Fri Apr 25, 2008 1:12 am
by kamsmartx
Welcome
Question
I want to change the value of text field when choosing from a list value of the solution
Be interpreted as follows
I'm in a field next to the texts and also list and is required when selecting the value of the list and let 1 box sent to neighbouring value figure 1 in the database and let Name

:crazy:

Re: how to make this

Posted: Fri Apr 25, 2008 1:46 am
by Kieran Huggins
You probably want javascript, or more specifically, jQuery.

http://jquery.com

Re: how to make this

Posted: Fri Apr 25, 2008 1:52 am
by kamsmartx
but i need explain with code

jqery not good with my code

then i seject and chane data from data base

Re: how to make this

Posted: Fri Apr 25, 2008 2:10 am
by kamsmartx
take this code

Code: Select all

<select name="FileNo" id="select2" onChange="change_title();">
    <? 
$query="SELECT * FROM pationts";
$result=mysql_query($query) or die("error: " . mysql_error());
while($row=mysql_fetch_array($result))
{
    echo "bla";
?>  
<option value="<?php echo $row['FileNo'] ; ?>"><?php echo $row['FileNo'] ; ?></option>   
<?
 
    }  
?>
</select>
the above code is for list i need to select value from it and when i select value we must change vale on the below code

Code: Select all

<input name="PationtName" type="text" id="title"/>

Re: how to make this

Posted: Fri Apr 25, 2008 3:16 am
by kamsmartx
:?:
what i do >>> :cry:

Re: how to make this

Posted: Fri Apr 25, 2008 3:48 am
by onion2k
kamsmartx wrote::?:
what i do >>> :cry:
You use your brain, learn from what people have said so far, ask questions about how to do things you're finding difficult, read the manual, google for PHP tutorials, and you implement this yourself.

You don't just cry about how you can't do this and ask people to do it for you.

This forum is a place where you can come for help writing the code yourself. It is not a place where you can come to get people to write code for you for free.

Re: how to make this

Posted: Fri Apr 25, 2008 3:54 am
by kamsmartx
onion2k wrote:
kamsmartx wrote::?:
what i do >>> :cry:
You use your brain, learn from what people have said so far, ask questions about how to do things you're finding difficult, read the manual, google for PHP tutorials, and you implement this yourself.

You don't just cry about how you can't do this and ask people to do it for you.

This forum is a place where you can come for help writing the code yourself. It is not a place where you can come to get people to write code for you for free.

ok but i need some helpe

Re: how to make this

Posted: Fri Apr 25, 2008 4:24 am
by kamsmartx
i think u have to display corresponding PationtName value should be displayed for selected FileNo am i right????????