Jump to content

dynamic nested text boxes


FraggleRock

Recommended Posts

Being new to PHP, I have run into an issue.  Not sure if this is correct place to ask, but I figure that if I start here someone will tell me if I am wrong.

 

I am trying to write a web page that has nested text boxes that can be added dynamically.  As an example, let's think of a recipe.  The recipe can have different steps (aka marinade, main cooking, gravy preparation, etc).  Each of these individual steps can also have a different ingredients for them.

 

So sticking with the above example, I would need to allow the user to dynamically add a different step, and within each of those steps, dynamically add ingredients.

 

Has anyone see this done, have any ideas on where to start looking, or what it would take to accomplish this?  Can this even be done in PHP, or do I need to start learning Java as well?

 

Note: I have tried using just strait php, and I haven't been able to accomplish it (probably due to my lack of coding skill) by adding multiple submit buttons to resubmit the form for each addition.  This didn't work. 

 

Thanks for the help in advance.  I appreciate it.

 

Sincerely

 

FraggleRock

Link to comment
https://forums.phpfreaks.com/topic/202920-dynamic-nested-text-boxes/
Share on other sites

PHP is a backend tool of the server. PHP will be involved in your project (processing the form), but what you are describing is functions that take place in a user's browser (called the client). A browser uses javascript to dynamically change the content on the page without reloading, etc.

 

Look at javascript platforms like this: http://jqueryui.com/ play around with it and see what you can do. then post problems in the javascript section of this forum

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.