Misulache Posted December 8, 2014 Share Posted December 8, 2014 Beeing in a HTML page how can I return a PHP array into a Form's datalist input ? Link to comment Share on other sites More sharing options...
es131245 Posted December 8, 2014 Share Posted December 8, 2014 foreach($array as $unit){ print( '<input type="text" value="' .$unit. '"/>' );} Link to comment Share on other sites More sharing options...
dsonesuk Posted December 8, 2014 Share Posted December 8, 2014 With *.htm/l page you would have to use ajax to access php page and return result to specific location on the *.htm/l page. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now