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 Tony on 01/19/06 08:27

one man army wrote:
> 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">
> > >

> 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.

You may have crossposted to c.l.js, but you didn't provide much to work
with - there is practically no context. Edit for brevity, but please
provide sufficient information for an informed response.

That said, I'll take a wild stab at an uninformed guess:

document.getElementById('zipRaw_id').value = theValueIWantToSetItTo;
- that is - set the value of the <input>...

 

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

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