Client Side Coding > Javascript & Ajax

text transfer from db table

<< < (2/4) > >>

richei:
I'll take a look at the links. 
your talking about this:

--- PHP Code: ---
$message = "
<html>
<body>
$f[subject] has been replied to by $_COOKIE[adminuser].<br />
Your answer is below:<br />".strip_slashes_recursive($put)."<br /><br />Please use this <a href='http://vmg.venzodigital.com/public_check_inquiries.php?req_id=$req_id'>link</a> to reply.
</body>
</html>";
--- End code ---
?

The message works just fine.  the variables will work as long as its inside double quotes.

I had a look at that demo link - nothing happens

richei:
This is more like what i'm trying to do - http://www.dynamicdrive.com/forums/archive/index.php/t-29405.html, except my pulldown box is dynamically created and it would have to run a query to get the corresponding default answer.  so like right now there's just 1 message (Registration).  So if i selected that, upon me clicking or onChange, the message


--- Quote ---Hi %name%,

Please provide me with the following: Label Name (Artist Name if Unsigned), PayPal E-mail, and Country.

From there we'll go ahead and create your account so you can begin uploading your music to iTunes.

Please let us know if you have any questions - %admin%
--- End quote ---

would appear in the textarea box.

ErnieAlex:
I gave you the answer in the links I sent.

It shows how to do dynamic loading of ANY field.  You just have to change the last  dropdown(s) to a textarea and it will load it.  You have to alter the code to fit whatever you want to show in the textarea.  I used this to dynamically load data saved in a database into a textarea and it works just fine.  I am sure you can alter their samples to fill your textarea.

If not, show us what you have done and we can help...  I have seen your replies to others and know you should be able to figure this out.  Let us know if not...

richei:
I did some research on ajax and mysql and think i've come up with a solution.  My problem was how to get the selected response into the textarea.  I'm working on that now and will update the code once i hit another roadblock.

ErnieAlex:
Sounds good..  If no roadblocks, then great!  If some, post away...  Good luck.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version