Jump to content

Archived

This topic is now archived and is closed to further replies.

rajmohan

how to get values from textfield without submiting or refreshing??

Recommended Posts

Hai guys i am in trouble i need a help

i am having a listbox and one textfield. in that if i change a listbox i got a value in textfield and how to get the values for my query.

Share this post


Link to post
Share on other sites
Hey,

put this code in select tag

[color=red]onChange="document.nameOfForm.submit();"[/color]

like this:
<select name="" [color=red]onChange="document.nameOfForm.submit();"[/color]>
  <option></option>
</select>

Hope this one will help!

Share this post


Link to post
Share on other sites
no i want to retrive

get value from textfield value to php

this value is kept in javascript

Share this post


Link to post
Share on other sites
if the form method is post
use $_POST['textfieldname']

if the form method is get
use $_GET['textfieldname']

The title (how to get values from textfield without submiting or refreshing??) confused me. Hope I'm getting you!

Share this post


Link to post
Share on other sites
To do this without refreshing you will need to use an Ajax technique, if you're wanting to do this purely with PHP, you're pretty much out of luck I'm affraid...

Share this post


Link to post
Share on other sites

×

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.