<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0" xmlns:blogChannel="http://backend.userland.com/blogChannelModule">

<channel>
<title>Generating a HTTP POST request with dynamic contents in Webmasters and Developers</title>
<link>http://www.dslreports.com/forum/r22573972</link>
<description></description>
<language>en</language>
<pubDate>Sat, 28 Nov 2009 11:02:58 EDT</pubDate>
<lastBuildDate>Sat, 28 Nov 2009 11:02:58 EDT</lastBuildDate>

<item>
<title>Re: Generating a HTTP POST request with dynamic contents</title>
<link>http://www.dslreports.com/forum/remark,22587336</link>
<description><![CDATA[<A HREF="/useremail/u/825167"><b>johnnyboyct</b></A> : Yup and it would be $sql.=whatever or it would just keep rewriting.]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/remark,22587336</guid>
<pubDate>Sun, 21 Jun 2009 14:58:46 EDT</pubDate>
</item>

<item>
<title>Re: Generating a HTTP POST request with dynamic contents</title>
<link>http://www.dslreports.com/forum/remark,22584874</link>
<description><![CDATA[<A HREF="/useremail/u/705861"><b>Jafo232</b></A> : In the above example, don't forget to sanitize $k and $v..]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/remark,22584874</guid>
<pubDate>Sat, 20 Jun 2009 22:00:11 EDT</pubDate>
</item>

<item>
<title>Re: Generating a HTTP POST request with dynamic contents</title>
<link>http://www.dslreports.com/forum/remark,22578006</link>
<description><![CDATA[<A HREF="/useremail/u/825167"><b>johnnyboyct</b></A> : You trying to do like facebook(i think) or something, click the link that then shows the next field if you want it? IE:<br>name:<br>Email:<br><br>link-add your address<br>link-add your website<br><br>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<br><br><textarea name="code" class="text" cols=50 rows=10>foreach($_POST as $k=&gt;$v){&#012;if(!empty($v)) $sql = '`'.$k.'`="'.$v.'",'; &#012;}&#012;</textarea><!--end code block--><br>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.<br><br><small>--<br><A HREF="http://www.MilestoneMultimedia.com">Connecticut  Web Design and Development</a></small>]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/remark,22578006</guid>
<pubDate>Fri, 19 Jun 2009 12:46:08 EDT</pubDate>
</item>

<item>
<title>Re: Generating a HTTP POST request with dynamic contents</title>
<link>http://www.dslreports.com/forum/remark,22577955</link>
<description><![CDATA[<A HREF="/useremail/u/1516483"><b>Tenar</b></A> : Can you use a foreach loop and test for possible keys?]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/remark,22577955</guid>
<pubDate>Fri, 19 Jun 2009 12:39:20 EDT</pubDate>
</item>

<item>
<title>Re: Generating a HTTP POST request with dynamic contents</title>
<link>http://www.dslreports.com/forum/remark,22576129</link>
<description><![CDATA[<A HREF="/useremail/u/0"><b>anon</b></A> : 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.]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/remark,22576129</guid>
<pubDate>Fri, 19 Jun 2009 01:55:31 EDT</pubDate>
</item>

<item>
<title>Re: Generating a HTTP POST request with dynamic contents</title>
<link>http://www.dslreports.com/forum/remark,22575622</link>
<description><![CDATA[<A HREF="/useremail/u/386501"><b>JAAulde</b></A> : We'll really need a little more context as to the data structures you'll be working with.]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/remark,22575622</guid>
<pubDate>Thu, 18 Jun 2009 22:56:43 EDT</pubDate>
</item>

<item>
<title>Re: Generating a HTTP POST request with dynamic contents</title>
<link>http://www.dslreports.com/forum/remark,22575138</link>
<description><![CDATA[<A HREF="/useremail/u/705861"><b>Jafo232</b></A> : You mean something like this? <br><textarea name="code" class="text" cols=50 rows=10>  POST $url,&#012;       Content_Type =&gt; 'form-data',&#012;       Content      =&gt; &#91; name  =&gt; $name,&#012;                         email =&gt; $email,&#012;                         gender =&gt; $gender,&#012;                         born   =&gt; $dob,&#012;                         init   =&gt; &#91;"$ENV{HOME}/.profile"&#93;,&#012;                       &#93;&#012;</textarea><!--end code block--><br><small>--<br><A HREF="http://www.worldwidecreations.com">Custom PHP/Perl Development.  Vbulletin And Wordpress Mods Too!</a></small>]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/remark,22575138</guid>
<pubDate>Thu, 18 Jun 2009 21:22:51 EDT</pubDate>
</item>

<item>
<title>Generating a HTTP POST request with dynamic contents</title>
<link>http://www.dslreports.com/forum/remark,22573972</link>
<description><![CDATA[<A HREF="/useremail/u/0"><b>anon</b></A> : 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.<br><br><textarea name="code" class="text" cols=50 rows=10>  POST 'http://www.perl.org/survey.cgi',&#012;       Content_Type =&gt; 'form-data',&#012;       Content      =&gt; &#91; name  =&gt; 'Gisle Aas',&#012;                         email =&gt; 'gisle@aas.no',&#012;                         gender =&gt; 'M',&#012;                         born   =&gt; '1964',&#012;                         init   =&gt; &#91;"$ENV{HOME}/.profile"&#93;,&#012;                       &#93;&#012;</textarea><!--end code block-->]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/remark,22573972</guid>
<pubDate>Thu, 18 Jun 2009 17:27:56 EDT</pubDate>
</item>

</channel>
</rss>
