Jump to content

Recommended Posts

:confused:

 

Hi again

 

Someone have some code to allow users add new text boxes in a web site.

E.g. I have a site where the user can enter a friends name using a text box, and that text box has a + sign to allow the user, by clicking on it, add more friends in a new text box and then insert into the DB ...

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/190646-existing-php-code/
Share on other sites

Ok ...

 

The problem is like this:

On my web site I have several text fields where the user enters the name of several items related with personal information.

He can enter e.g his address in a text box with 40 char, but if he wants enter more information for the address, he will have a button (+ sign) when he can clicks on it and another same text box will be open to him ... and he will be able to enter another address ...

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/190646-existing-php-code/#findComment-1005511
Share on other sites

Then that sends the data to a php file, could call the same page with the new data even... and the page would look first if that data is there or equal to something if so... then it would then display the extra plus prefilled out fields they had already filled out.

 

Something like that?

 

EDIT: else javascript is easier to do that. Since this process requires a reload. PHP is a server side language remember.

Link to comment
https://forums.phpfreaks.com/topic/190646-existing-php-code/#findComment-1005518
Share on other sites

Its a simple idea, but um not having the code here too long to just create one... And not really possible for the most part just using php... not how you want to do it anyways. Want a Javascript example... try here: http://www.dynamicdrive.com/ They have loads of excellent dynamic menus, scripts, calendars what have you and more importantly it is a code example place... that deals with more then a server side language.

Link to comment
https://forums.phpfreaks.com/topic/190646-existing-php-code/#findComment-1005554
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.