Hi Team,
May I just request some assistance with some form syntax in PHP.
I am getting stuck with the coding of my form below as I want it to output this URL:
...where 167838722 is the value of the variable --> "target_ip" that was submitted by the user.
From the form below, I just get this:
I am not sure how to evaluate the variable "target_ip" during submit time and substitute this as the parameter for the rest of the URL.
The snippet of the form I have so far is this:
==============================================================
class tables_FIREWALL_INTERFACES {
function block__before_body() {
echo "This is some text test<p>";
}
function block__actions_menu_head() {
echo "<form action='index.php' method='get'>";
echo " Search IP address: <input type='text' name='target_ip' />";
echo " <input type='hidden' name='-action' value='list'/>";
echo "<input type='hidden' name='-table' value='FIREWALL_INTERFACES'/>";
echo "<input type='hidden' name='Lower_Dec' value='<='$target_ip/>";
# echo "<input type='hidden' name='Upper_Dec' value='>='$target_ip/>;
echo "<input type='submit'/>";
echo "</form>";
}
}
========================================================
Thanks very much for any suggestions.
May I just request some assistance with some form syntax in PHP.
I am getting stuck with the coding of my form below as I want it to output this URL:
Code:
[URL unfurl="true"]http://192.168.1.102/Integra/index.php?-table=FIREWALL_INTERFACES&Lower_Dec=<=167838722&Upper_Dec=>=167838722[/URL]
...where 167838722 is the value of the variable --> "target_ip" that was submitted by the user.
From the form below, I just get this:
Code:
[URL unfurl="true"]http://192.168.1.102/Integra/index.php?target_ip=123456&-action=list&-table=FIREWALL_INTERFACES&Lower_Dec=%3C%3D[/URL]
I am not sure how to evaluate the variable "target_ip" during submit time and substitute this as the parameter for the rest of the URL.
The snippet of the form I have so far is this:
==============================================================
class tables_FIREWALL_INTERFACES {
function block__before_body() {
echo "This is some text test<p>";
}
function block__actions_menu_head() {
echo "<form action='index.php' method='get'>";
echo " Search IP address: <input type='text' name='target_ip' />";
echo " <input type='hidden' name='-action' value='list'/>";
echo "<input type='hidden' name='-table' value='FIREWALL_INTERFACES'/>";
echo "<input type='hidden' name='Lower_Dec' value='<='$target_ip/>";
# echo "<input type='hidden' name='Upper_Dec' value='>='$target_ip/>;
echo "<input type='submit'/>";
echo "</form>";
}
}
========================================================
Thanks very much for any suggestions.