site Search:


 
    All Forums Hot Topics Gallery






how-to block ads


 
Search Topic:
Share Topic
Posting?
Post a:
Post a:
Links: ·How To Get Noticed ·Web Monks FAQ ·Webhosting FAQ ·Posting Code ·How To Post ·Webhosting forum
AuthorAll Replies


johnnyboyct

join:2003-06-11
New Britain, CT
Reviews:
·Comcast

reply to httppost

Re: Generating a HTTP POST request with dynamic contents

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

foreach($_POST as $k=>$v){
if(!empty($v)) $sql = '`'.$k.'`="'.$v.'",'; 
}
 

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


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

In the above example, don't forget to sanitize $k and $v..


Saturday, 02-Jun 13:39:11 Terms of Use & Privacy | feedback | contact | Hosting by nac.net - DSL,Hosting & Co-lo
over 12.5 years online © 1999-2012 dslreports.com.
Most commented news this week
Hot Topics