You are here: Re: Pass values from form using URL « PHP Programming Language « IT news, forums, messages
Re: Pass values from form using URL

Posted by chsadaki on 11/14/91 11:51

drec wrote:
> I am creating a search box that the user types a value in, and then
> this gets passed to another page called search.php
>
> I would like to be able to pass these values through the URL, but I
> cant seem to figure out how. Right Now I have a simple html form that
> passes the value through posting, which I can then pull with a
> $_POST['name']. But I need to have this value be passed through URL.

Hello Drec
Your problem can be solved by replacing the $_POST with $_GET['name']
I guess that the value of method in the form tag is :
<form .... method="POST"....>
so u have to replace it with method="get" in this case u can see what u
r passing in the url.

Chamirame Sadaki

 

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

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