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 trpost on 01/14/08 22:45

On Jan 14, 3:33 pm, "Paul Lautman" <paul.laut...@btinternet.com>
wrote:
> trp...@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!
>
> If you do it with php and javacript you are in effect using a form, which
> you have stated you do not want to do.- Hide quoted text -
>
> - Show quoted text -

Well I guess I don't mind using a form, but I have a few hundred links
on the page and didn't think it would be efficient to create a hidden
field for each potential link. I instead just want to send the data
that is clicked on. For example here is how you use the applciation:


Name Low Med. High
Test 100 980 203
Test1 433 656 135
Test2 118 313 733
Test3 952 416 518
Test4 205 813 465
Test5 425 556 324
Test6 113 131 943
Test7 291 767 304
....


This goes on for a few hundred rows.... You can currently click on any
number, which passes a list of underlying numbers to another .php
script which gives you more details. So if you click on 100, it goes
to another script passing a comma separated list of 100 cases.

 

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

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