Search:  

 
 
   All ForumsHot TopicsGallery






how-to block ads


 
Forums » Tech and Talk » OS and Software » Webmasters and Developers » Generating a HTTP POST request with dynamic contents
Search Topic:
Uniqs:
434
Share Topic:
RSS topic:
toggle:
flat / full
normal / watch
Posting:
Post a:
Post a:
« webpage Printing - how to Format webpage content  
AuthorAll Replies
-


johnnyboyct

join:2003-06-11
Newington, CT
reply to httppost
Re: Generating a HTTP POST request with dynamic contents

Yup and it would be $sql.=whatever or it would just keep rewriting.


Jafo232
You Can't Spell Democrat Without Rat.
Premium
join:2002-10-17
Boonville, NY
reply to johnnyboyct
In the above example, don't forget to sanitize $k and $v..


johnnyboyct

join:2003-06-11
Newington, CT
·Cox HSI

reply to httppost
You trying to do like facebook(i think) or something, click the link that then shows the next field if you want it? IE:
name:
Email:

link-add your address
link-add your website

If thats what your doing, Id just render them all to the page, just display:none, and give the fields the database column names so you could do a foreach like suggested. Something like


If the fields are dynamica nd the user can make them, its all in your db. There needs to be a table for form and then elements.

--
Connecticut Web Design and Development


Tenar

join:2008-01-02
Midland, ON
reply to httppost
Can you use a foreach loop and test for possible keys?


httppost

@sbcglobal.net
reply to httppost
No, I don't know how many items I will have for Content. For example, I may have "name" and "email" only, but "gender", "born" and "init" won't be available. The script need to be flexible enough to handle unknown number of contents.


JAAulde
yum yum yum yum yum
Premium,MVM
join:2001-05-09
Hagerstown, MD
reply to httppost
We'll really need a little more context as to the data structures you'll be working with.


Jafo232
You Can't Spell Democrat Without Rat.
Premium
join:2002-10-17
Boonville, NY
·RoadRunner Cable

reply to httppost
You mean something like this?

--
Custom PHP/Perl Development. Vbulletin And Wordpress Mods Too!


httppost

@microsoft.com

I find the following code sample on how to generate a HTTP POST with multipart/form-data encoding; however, in my case, I won't know which parameters are available until runtime. For example, I may have only 'name' and 'email'. Is there a way I can work around it and provide a dynamic list of parameters? Thanks.

Forums » Tech and Talk » OS and Software » Webmasters and Developers« webpage Printing - how to Format webpage content  


Saturday, 28-Nov 20:37:56 Terms of Use | Privacy Policy | Hosting by www.nac.net - DSL,Hosting & Co-lo | feedback | contact
over 10 years online! © 1999-2009 dslreports.com.
page compression OFF
Most commented news this week
· [122] Time Warner Cable Fires Broadside At Broadcasters
· [112] New AT&T Ad Campaign Hits Back At Verizon
· [96] Apple Joins AT&T Verizon Snark Fest
· [87] New Bill Takes Aim At Higher Verizon ETFs
· [80] TiVo Sees Record Customer Losses
· [70] Verizon CEO: Hulu Will Be Dead Soon
· [69] In-Flight Internet Headed For Bumpy Landing?
· [67] Weekend Open Thread
· [62] Thanksgiving Open Thread
· [40] EFF Wages War On Fine Print
Most people now reading
· [Newsgroups] Newzleech down? [Filesharing Software]
· 3.x Feral Druid - Bear Tanking Guide [World of Warcraft]
· Why does it take so long? Mail question [General Questions]
· Windows 7 boot manager editing questions [Microsoft Help]
· [ Classes] Druid tanking: rotation and glyphs [World of Warcraft]
· [How to] Install Asterisk on an Asus WL-520GU router [VOIP Tech Chat]
· Using DIR-615 C1/3.01 with Trendnet TEW-652BRP in N Mode [D-Link]
· Digital Transport Adapter Unboxing Photos [Comcast Cable TV]
· Why would I want an e reader? [General Questions]