To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > Misc Help > ClientSide Technologies

ClientSide Technologies Discuss HTML/CSS/Javascript, and any other client-side technologies, here.

Reply
 
Thread Tools Rate Thread Display Modes
Old 05-13-2006, 07:28 AM   #1
dhanya_kr
Junior Member
 
Join Date: Mar 2006
Posts: 16
Question dynamically created INPUT and TEXTAREA elements do not submit their values, Why?

hi all,

dynamically created INPUT and TEXTAREA elements do not submit their values in POST of GET.

I created input and select elements dynamically using javascript, but when I submitting the form the
the input and select elements do not submit their values.. Static input elements are submitting their values...

how can I resolve the problem...

thanks in advance
Dhanya
dhanya_kr is offline   Reply With Quote
Old 05-14-2006, 08:12 AM   #2
Weedpacket
Custom User Title™
 
Weedpacket's Avatar
 
Join Date: Aug 2002
Location: Rapid Offensive Unit "Foreign Object Damage"
Posts: 19,128
Last time I saw this it was due to a failing in IE. Certainly can't be PHP's fault.
But this works in Forefox, and IE6:
HTML Code:
<html><body>
<?php print_r($_GET);?>
<form id="stuff"><input type="submit"></form>
<script>
thisform = document.getElementById('stuff');
var field=document.createElement('input');
field.name= "foo";
field.value="wibble";
thisform.appendChild(field);
</script></body></html>
__________________
On two occasions I have been asked [by Members of Parliament], "Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?" I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.

Last edited by Weedpacket; 05-14-2006 at 08:23 AM.
Weedpacket is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 12:48 PM.






Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.