I have 2 web pages. One is called web1.php
and the other is web2.php
. I have a menu on the top of both pages that calls both pages through links.
I have to be able to pass and display the "submit" button that is pressed (there are 3 buttons, one called "Hi", "Hello", "Hola") in web1.php
to web2.php
and then clink the link for web1.php
on my header and have it also display there when I return to that page "You previously pressed hi".
I can get it to display on web2.php
but don't know how to get to display again after pressing the link.
web1.php
<input type="submit" value="HI" name="HI">
<input type="submit" value="HELLO" name="HELLO">
<input type="submit" value="HOLA" name="HOLA">
web2.php
if ( $_POST['HI'] )
{
echo "called using the HI";
}
else if ( $_POST['HELLO'] )
{
echo "called using the HELLO Button";
}
else if ( $_POST['HOLA'] )
{
echo "called using the HOLA Button";
}