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