You are here: Re: DOM doc - simple find element PHP+JS « PHP Programming Language « IT news, forums, messages
Re: DOM doc - simple find element PHP+JS

Posted by one man army on 01/19/06 02:36

In article <slrndsth8c.h04.hexkid@ID-203069.user.individual.net>,
Pedro Graca <hexkid@dodgeit.com> wrote:

> one man army wrote:
> > the snippet was edited for brevity...
> >
> > <input type="text" size="10" id="zipRaw_id" name="zipRaw_name"
> > maxlength="10">
> >
> > the main point is that I am getting an element back, and that eq
> > Javascript works to get the value. I just do not know how to make this
> > work in PHP !
>
> Don't know about DOM ... but don't you have to SUBMIT the form for PHP
> to be able to see the value in the input textbox?

yes, maybe there is somethin fundemental about PHP that I do not
understand here. (I am addin a cross post to c.l.javascript land in case
they know the answer - they know DOM very well)

I have a page with a value in a FORM. I am using a construct that lets
me execute some PHP _in response to an event on the page_, like the
click of a button. The php is executed in the context of that page
document.

So I expected to be able to read the contents of the form. Javascript
can do it. In the next line in the added code, as a matter of fact,
there is that value.

I need PHP to do the SQL query. The PHP SQL query is all set up, it
works. I need to read the value from the INPUT to add to the SQL query.
I have the value in javascript. How can I pass that single bit of data?
perhaps I need to pass the var FROM javascript TO the PHP code block. Or
else read the DOM element in the PHP as I originally asked.

This is a 100% roadblock at this moment. Insights are appreciated.
thanks!

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация