You are here: Re: HTTP POST from PHP using a link « PHP Programming Language « IT news, forums, messages
Re: HTTP POST from PHP using a link

Posted by Daniel Ennis on 01/14/08 22:41

trpost@gmail.com wrote:
> I am looking for a way to send data from one page to another as POST
> data without using forms or cURL.
>
> I have a php script that is passing a list of cases from on page to
> another when a link is clicked. This is working fine for the most part
> as a link, but sometimes the list gets very large and gets cut off.
> The reason it gets cut off appears to be a limitation on the amount of
> data that can be passesd in the URI.
>
> It looks like I can do this with cURL, but this script will run on
> several servers that do not have cURL compiled in and I do not want to
> recompile now.
>
> I found a few posts that say this can be done with PHP and javascript,
> but I found no good examples.
>
> To give you an example on what I am doing:
> <a href=case_details.php?cases=".$allCases."&priority=Low&PG=All>
> $count</a>
>
> $allCases is a comma separated list of numbers and can get very large.
> i.e. 84638,48957,58945,45375,....
>
> Thanks!
Your talking about cURL but also talking about doing it in links? Kinda
confused.

If the data is large, it should be in a database or stored in session.

If your just wanting to submit that data to another site then display
results, you can also use sockets and do a manual HTTP request with the
POST data.

The biggest question is why send so much data and not use a form?

--
Daniel Ennis
faNetworks.net - Quality Web Hosting and Ventrilo Services
System Administrator / Web Developer
PHP Developer for 6 years
daniel@fanetworks.net

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация