how to make this

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kamsmartx
Forum Newbie
Posts: 21
Joined: Mon Apr 21, 2008 10:03 am

how to make this

Post 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:
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Re: how to make this

Post by Kieran Huggins »

You probably want javascript, or more specifically, jQuery.

http://jquery.com
kamsmartx
Forum Newbie
Posts: 21
Joined: Mon Apr 21, 2008 10:03 am

Re: how to make this

Post by kamsmartx »

but i need explain with code

jqery not good with my code

then i seject and chane data from data base
kamsmartx
Forum Newbie
Posts: 21
Joined: Mon Apr 21, 2008 10:03 am

Re: how to make this

Post 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"/>
kamsmartx
Forum Newbie
Posts: 21
Joined: Mon Apr 21, 2008 10:03 am

Re: how to make this

Post by kamsmartx »

:?:
what i do >>> :cry:
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: how to make this

Post 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.
kamsmartx
Forum Newbie
Posts: 21
Joined: Mon Apr 21, 2008 10:03 am

Re: how to make this

Post 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
kamsmartx
Forum Newbie
Posts: 21
Joined: Mon Apr 21, 2008 10:03 am

Re: how to make this

Post by kamsmartx »

i think u have to display corresponding PationtName value should be displayed for selected FileNo am i right????????
Post Reply