updating textbox based off dynamic drop down list from DB
Moderator: General Moderators
Re: updating textbox based off dynamic drop down list from D
Ah,great discussions so far...Hope that VFDinc got the idea for solving that pblm.
Re: updating textbox based off dynamic drop down list from D
Everything is working fine. I missed a textarea termination, and threw me off, but now its working.
Thanks for all the help! I am sure I will be posting soon. I am loving this experience to learn PHP/HTML/JS.
Thanks for all the help! I am sure I will be posting soon. I am loving this experience to learn PHP/HTML/JS.
Re: updating textbox based off dynamic drop down list from D
You may now resume hijacking my thread 
Re: updating textbox based off dynamic drop down list from D
haha, yeah sorry about that.
Glad you got it fixed, I never would have come up with a solution if you needed some javascript.
Good luck on your project!
Glad you got it fixed, I never would have come up with a solution if you needed some javascript.
Good luck on your project!
-
mikeashfield
- Forum Contributor
- Posts: 159
- Joined: Sat Oct 22, 2011 10:50 am
Re: updating textbox based off dynamic drop down list from D
I have to disagree, create index.html with the following code:califdon wrote:I'm afraid that's incorrect. PHP can be embedded anywhere in an HTML document, as long as it is preceded and followed by the opening and closing tags ( <?php and ?> ). It is very common to include several blocks of PHP code at various points within an HTML document.
Code: Select all
<html>
<head>
<title>test</title>
</head>
<body>
<?php echo 'hello world!'; ?>
</body>
</html>Re: updating textbox based off dynamic drop down list from D
That works perfectly fine with any server that is configured to interpret PHP and recognize whatever filetype you saved it as. Now, if you want to quibble and say that it doesn't work if you use a filetype that the server isn't configured to recognize, I don't consider that a useful comment. It also wouldn't work if you named it index.txt. Most web servers are configured to recognize .php filetypes, but some sysadmins prefer to recognize other filetypes, too, such as .htm or .html. That's merely an option for the sysadmin. It's not a PHP issue, it's a server configuration issue. The point of my comment was to correct an incorrect statement to the effect that any PHP code had to precede any HTML code in the same file, which is simply not true.manohoo wrote:I have to disagree, create index.html with the following code:califdon wrote:I'm afraid that's incorrect. PHP can be embedded anywhere in an HTML document, as long as it is preceded and followed by the opening and closing tags ( <?php and ?> ). It is very common to include several blocks of PHP code at various points within an HTML document.Explain then why the above does not produce any output.Code: Select all
<html> <head> <title>test</title> </head> <body> <?php echo 'hello world!'; ?> </body> </html>
Re: updating textbox based off dynamic drop down list from D
and I again thank you, as I learned something that day.
And I just learned something else by reading that, too. You have quite a bit to teach!
And I just learned something else by reading that, too. You have quite a bit to teach!
Re: updating textbox based off dynamic drop down list from D
Thank you. I did teach (not programming, but other computer related subjects) in college for about 10 years after I retired from industry. So I would consider myself a failure if I didn't have something to teach. 