Page 2 of 2

Re: updating textbox based off dynamic drop down list from D

Posted: Tue Oct 25, 2011 12:13 am
by Gopesh
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

Posted: Tue Oct 25, 2011 9:48 am
by VFDinc
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.

Re: updating textbox based off dynamic drop down list from D

Posted: Tue Oct 25, 2011 10:56 am
by VFDinc
You may now resume hijacking my thread :)

Re: updating textbox based off dynamic drop down list from D

Posted: Tue Oct 25, 2011 10:59 am
by egg82
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!

Re: updating textbox based off dynamic drop down list from D

Posted: Thu Oct 27, 2011 10:15 am
by mikeashfield
looks cool

Re: updating textbox based off dynamic drop down list from D

Posted: Thu Oct 27, 2011 1:39 pm
by manohoo
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.
I have to disagree, create index.html with the following code:

Code: Select all

<html>
  <head>
  <title>test</title>
  </head>
  <body> 
     <?php echo 'hello world!'; ?>
  </body>
</html>
Explain then why the above does not produce any output.

Re: updating textbox based off dynamic drop down list from D

Posted: Thu Oct 27, 2011 4:52 pm
by egg82
HTML header?

Re: updating textbox based off dynamic drop down list from D

Posted: Thu Oct 27, 2011 9:19 pm
by califdon
manohoo wrote:
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.
I have to disagree, create index.html with the following code:

Code: Select all

<html>
  <head>
  <title>test</title>
  </head>
  <body> 
     <?php echo 'hello world!'; ?>
  </body>
</html>
Explain then why the above does not produce any output.
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.

Re: updating textbox based off dynamic drop down list from D

Posted: Thu Oct 27, 2011 10:05 pm
by egg82
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!

Re: updating textbox based off dynamic drop down list from D

Posted: Thu Oct 27, 2011 10:36 pm
by califdon
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. :)