Jump to content


little php / js help please


1 reply to this topic

#1 curthard89

    Young Padawan

  • Members
  • Pip
  • 226 posts

Posted 19 May 2007 - 01:46 PM

ok guys,

i have a textarea which has alot of js applied to it to make it highlight syntax etc, only trouble is, only way i can save the data is by using a function called getCode()

which is js which gets the content of the textarea

..my question...

how do i make it so that when i press save....it gets the content so i can have like $_POST['content']; for php, so i can then update my session etc

any ideas?

if u put alert(getCode()); it generates a alert box with all the content, is thee a way i can get a php variable to call the js function to get the data?

or any other ways.

cheers dudes, btw, this is for my tutorial cms, which alot of ppl like, so helping me will benefit u all :P

#2 curthard89

    Young Padawan

  • Members
  • Pip
  • 226 posts

Posted 19 May 2007 - 03:13 PM

nvm...all good :D





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users