Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Arno Welzel Newsgroups: comp.lang.php Subject: Re: Beginner question on using PHP and POST Date: Mon, 26 Aug 2019 09:27:38 +0200 Lines: 29 Message-ID: References: <5d616255$0$31423$426a74cc@news.free.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: individual.net 8EJfgDsP2qYof2lnvEPI0gUfF+HkJF2gXFgb4I1MnaDwrAlkD5 Cancel-Lock: sha1:492LPA+NH26H+F140VUhHN+JWFM= In-Reply-To: <5d616255$0$31423$426a74cc@news.free.fr> Xref: csiph.com comp.lang.php:18048 Dan Wissme: > I write an HTML page foods.html containing a form like : > >
>

> >
> > > The purpose is to get from user the name of the food and open a web page > already existing about that food. The user may ask for 'meat' for > example. I will then open the web page meat.html > > So I wrote a file "process.php" like that one : > > $food=htmlspecialchars($_GET["food"]); > <--------- what then ? > ?> > > I tried echo, readfile, etc but got nothing... Because you POST things you need $_POST[]. -- Arno Welzel https://arnowelzel.de