Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #17460

Re: Arguments on a button

Path csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From Lew Pitcher <lew.pitcher@digitalfreehold.ca>
Newsgroups comp.lang.php
Subject Re: Arguments on a button
Followup-To comp.lang.php
Date Fri, 02 Jun 2017 12:51:58 -0400
Organization The Pitcher Digital Freehold
Lines 30
Message-ID <ogs4sr$63n$1@dont-email.me> (permalink)
References <be64366d-5484-4569-a97c-dab6238b13c0@googlegroups.com> <ogrrin$4qu$1@dont-email.me> <ktgYA.13454$MI5.12743@fx41.iad>
Mime-Version 1.0
Content-Type text/plain; charset="US-ASCII"
Content-Transfer-Encoding 7Bit
Injection-Date Fri, 2 Jun 2017 16:48:28 -0000 (UTC)
Injection-Info mx02.eternal-september.org; posting-host="cd8673b80dae40ef5ca03088582d520c"; logging-data="6263"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/5SSAsquPpW/tTmip1f3VoSN3nTB4WteE="
User-Agent KNode/0.99.01
Cancel-Lock sha1:wu21W/ECLog6vEl89tUZwve3wOA=
Xref csiph.com comp.lang.php:17460

Followups directed to: comp.lang.php

Show key headers only | View raw


Mark Lloyd wrote:

> On 06/02/2017 09:12 AM, Lew Pitcher wrote:
>> bit-naughty@hotmail.com wrote:
>> 
>>> If I have a button on a page, which when clicked, I want to run
>>> "page2.php", with particular arguments, say fruit=papaya&veggies=potato
>>> , how do I do that?
>> 
>> You don't need PHP for that; you can satisfy that requirement with pure
>> HTML:
>>    <form method="post" action="page2.php?fruit=papaya&veggies=potato">
>>    <input type="submit">
>>    </form>
> 
> I used to do that. Now I use a normal link, and use CSS to make it look
> like a button.

Good point.

There are many ways to handle this requirement that do not use PHP. Not 
knowing the OP's skill level, I refrained from mentioning CSS or  
JavaScript; I find no need to confuse him.


-- 
Lew Pitcher
"In Skills, We Trust"
PGP public key available upon request

Back to comp.lang.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Arguments on a button bit-naughty@hotmail.com - 2017-06-02 06:25 -0700
  Re: Arguments on a button Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2017-06-02 10:12 -0400
    Re: Arguments on a button Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2017-06-02 10:19 -0400
      Re: Arguments on a button Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-06-06 20:53 +0200
        Re: Arguments on a button "Christoph M. Becker" <cmbecker69@arcor.de> - 2017-06-06 23:44 +0200
          Re: Arguments on a button Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-06-07 22:35 +0200
    Re: Arguments on a button Mark Lloyd <not@mail.invalid> - 2017-06-02 11:35 -0500
      Re: Arguments on a button Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2017-06-02 12:51 -0400
    Re: Arguments on a button Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2017-06-03 10:39 -0400
    Re: Arguments on a button "Christoph M. Becker" <cmbecker69@arcor.de> - 2017-06-05 19:41 +0200
      Re: Arguments on a button Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2017-06-05 14:02 -0400

csiph-web