Jump to content

Weird Question


kaspm

Recommended Posts

As long as if it was after the form was submitted, yes, it is possible. Just use an if statement to accomplish this.

[code]<?php
if($_POST['variable'] == "link1")
{
     echo('Link1');
}
elseif($_POST['variable'] == "link2")
{
     echo('Link2');
}
?>[/code]

[!--coloro:#990000--][span style=\"color:#990000\"][!--/coloro--]Jeremy[!--colorc--][/span][!--/colorc--]
Link to comment
https://forums.phpfreaks.com/topic/9412-weird-question/#findComment-34677
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.