Welcome visitor
* Login
* Register
It is currently January 18th, 2019, 9:51 pm
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » HTML



Post new topic Reply to topic  [ 3 posts ] 
Author Message
  fill inputs with variables values
PostPosted: May 28th, 2009, 12:28 am 

Posts: 26
hi, i know how to do the value="anything", but how can i make the "anything" to be a variable or a word from a .txt file? thanks.


Top
 Profile  
 
  Re: fill inputs with variables values
PostPosted: May 28th, 2009, 12:35 am 
User avatar

Posts: 63
with variables is easy

javascript
document.getElementById('field1').value=$var;


php
echo '<input value="' . $var . '" />';



and ask in the server side languages forums if you want to get the word from a file.


Top
 Profile  
 
  Re: fill inputs with variables values
PostPosted: May 28th, 2009, 12:37 am 

Posts: 26
thank you.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

FORUMS » Client Side » HTML


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron