•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 427,463 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,572 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 10537 | Replies: 11
![]() |
•
•
Join Date: Oct 2006
Posts: 23
Reputation:
Rep Power: 3
Solved Threads: 0
Well.....in a sense it has turned into a PHP question. But I think you misunderstood my previous question.
Basically, the normal way of getting the form fields into PHP to process the data doesn't work. These new text boxes are dynamically created by JavaScript which must be the reason PHP can't assign variables to them as they don't "exist" as far as PHP can reason. (I could be completely wrong). So the question is, what is the process to read in the values from these dynamic textboxes such that the values can be assigned to PHP?
Thank You for your help up to this point,
Basically, the normal way of getting the form fields into PHP to process the data doesn't work. These new text boxes are dynamically created by JavaScript which must be the reason PHP can't assign variables to them as they don't "exist" as far as PHP can reason. (I could be completely wrong). So the question is, what is the process to read in the values from these dynamic textboxes such that the values can be assigned to PHP?
Thank You for your help up to this point,
You are completely wrong. 
PHP won't know or care how an HTML element was created, or how it got its value. As long as the element is part of a form with a proper action tag pointing to the PHP page, it makes no difference at all how the element was created or populated.
Also, an element that is submitted as a form isn't a GET request, it's a POST reqest. Perhaps that is your problem, looking for the values in GET, rather than POST.

PHP won't know or care how an HTML element was created, or how it got its value. As long as the element is part of a form with a proper action tag pointing to the PHP page, it makes no difference at all how the element was created or populated.
Also, an element that is submitted as a form isn't a GET request, it's a POST reqest. Perhaps that is your problem, looking for the values in GET, rather than POST.
Last edited by tgreer : Oct 14th, 2006 at 12:33 am.
![]() |
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Previous Thread: Javascript Popup Window
- Next Thread: Automatically populate text box with browser info...



Linear Mode