User Name Password Register
DaniWeb IT Discussion Community
All
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
Reply
Join Date: Oct 2006
Posts: 23
Reputation: jrivera is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
jrivera jrivera is offline Offline
Newbie Poster

Re: Select Box populates text field

  #11  
Oct 13th, 2006
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,
Reply With Quote  
Join Date: Dec 2004
Posts: 1,590
Reputation: tgreer is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 35
Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Select Box populates text field

  #12  
Oct 14th, 2006
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.
Last edited by tgreer : Oct 14th, 2006 at 12:33 am.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JavaScript / DHTML / AJAX Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 6:03 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC