?
Solved

Retrieve submited value of the submit botton.

Posted on 2006-07-13
2
Medium Priority
?
241 Views
Last Modified: 2013-12-13
Retrieve submited value of the submit botton.
Please don't user javascript

1st form

Form1.php

<form method="POST" action="didclick.php">
<input type="submit" value="ClickA" name="ClickA" >
<br>
<input type="submit" value="ClickB" name="ClickB" >
</form>


2nd form
didclick.php
<?php
Echo "Did click";
///something here
?>

Thanks
0
Comment
Question by:jetleestye
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 1000 total points
ID: 17103279

<form method="POST" action="didclick.php">
<input type="submit" value="ClickA" name="ClickA" >
<br>
<input type="submit" value="ClickB" name="ClickB" >
</form>


2nd form
didclick.php
<?php
$click = "N/A";
if (isset($_POST['ClickA']))  $click = "ClickA";
if (isset($_POST['ClickB']))  $click = "ClickB";
 
Echo "Did click: $click";
///something here
?>
0
 

Author Comment

by:jetleestye
ID: 17104094
thank you
0

Featured Post

WordPress Tutorial 3: Plugins, Themes, and Widgets

The three most common changes you will make to your website involve the look (themes), the functionality (plugins), and modular elements (widgets).

In this article we will briefly define each again, and give you directions on how to install them.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question