Jump to content

Automatic text field creator.


pat_codes

Recommended Posts

Automatic text field creator.

 

OK, so im a little bit new to php and I found that the best way to learn is to ask questions.

 

Ok, so im in need of building this feature. The idea is that a user could add another text field just by clicking a link.

 

He would add information into the textbox, and click the submit button. After he hits the submit button it would add the information into a tinymce WYSIWYG editor.

 

The only thing im having trouble with is how to build the feature that will add another text box..

 

Any information on where I  can learn how to do this would be awesome.

 

Check below for some example pictures.

 

 

2z5obbp.png

2gwyvdc.png

2dv5wsl.png

330h06d.png

 

Link to comment
https://forums.phpfreaks.com/topic/265283-automatic-text-field-creator/
Share on other sites

Is the text in these inputs ('Hello#') the name for the new field or is this the information that will populate the new field?

 

In any case, unless you want to do a POST (click a 'Submit' button and refresh the page) it looks like you're looking for jQuery, which will allow you to manipulate DOM elements on the fly.

Archived

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

×
×
  • Create New...

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.