Jump to content

[SOLVED] PHP & Javascript


PC Nerd

Recommended Posts

javascript could access a forms values prior to being posted but I really don't think that there is anyway that you would access any type of post array with javascript.. Since the post is made to the serverside.. This may have to be done with ajax or JSON..

Now I know that you could use the current url to parse information.. Which would basically be like php's $_GET.. here is a post of mine that may help with that.. http://www.phpfreaks.com/forums/index.php/topic,111729.msg452963.html#msg452963

[b]edit[/b]
You could just use cookies.. You can set and read them with javascript.. So unless the information being passed needs to be secure I think that cookies would be the best way to go..

Good Luck,
Tom
Link to comment
Share on other sites

When you asked 'can Javascript read these arrays?', I assumed you meant can Javascript variables be populated with this data? And the answer is yes, you can populate a javascript variable (or an array) with data posted via post just as easily as populating a html <p></p> tag.

You'll need to bne allot clearer in what exactly it is your trying to do.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.