DEVILofDARKNESS Posted March 23, 2009 Share Posted March 23, 2009 Is there a more proper way to change values as with forms? F.e. You are on your own user page where you should be able to change your email. currently there are textareas shown beneeth each value that can be changed with the current value, you can change the textarea its value and you need to click on submit. is there a more proper way? Quote Link to comment Share on other sites More sharing options...
Yesideez Posted March 23, 2009 Share Posted March 23, 2009 I think you're needing Javascript... <textarea name="mytext"></textarea> <input type="button" value="Change" onclick="document.form.mytext.value='i am here'" /> Quote Link to comment Share on other sites More sharing options...
revraz Posted March 23, 2009 Share Posted March 23, 2009 Is there a more proper way? Not really. But for your example I would use a INPUT line and not a Textarea. Is there a more proper way to change values as with forms? F.e. You are on your own user page where you should be able to change your email. currently there are textareas shown beneeth each value that can be changed with the current value, you can change the textarea its value and you need to click on submit. is there a more proper way? Quote Link to comment Share on other sites More sharing options...
DEVILofDARKNESS Posted March 23, 2009 Author Share Posted March 23, 2009 Is there a more proper way? Not really. But for your example I would use a INPUT line and not a Textarea. I'm not known with INPUT lines are it just html or are it PHP codes? Quote Link to comment Share on other sites More sharing options...
revraz Posted March 23, 2009 Share Posted March 23, 2009 HTML http://www.w3schools.com/html/html_forms.asp Look at the first Input Text example. Quote Link to comment Share on other sites More sharing options...
Yesideez Posted March 23, 2009 Share Posted March 23, 2009 TEXTAREA is a chunk of text (including multiple lines) whereas INPUT only one line. Quote Link to comment Share on other sites More sharing options...
RichardRotterdam Posted March 23, 2009 Share Posted March 23, 2009 I'm not known with INPUT lines are it just html or are it PHP codes? were just talking basic html here Textarea (for large chunks of text such as descriptions) <textarea></textarea> Input for text (for things like names,emails, streetnames etc) <input type="text" /> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.