yes, that's much easier
- Code: Select all
<?php
$user_group = $_GET['user_group'];
$agent_name = $_GET['agent_name'];
if ($user_group == "1000") {
echo "<center>Fronter Script</center><br></br>
Hello my name is
$agent_name
thank you for calling in to claim your rewards today, what is your claim number? (verify customers first and last name and collect claim # off of postcard)
<div></div>
One moment while my computer updates you information(pause for a few seconds)
<div></div>";
?>
this works quite well as long as the iframe link has the custom fields in the url
and, of course, you can have multiple scripts based on user group by adding the next line
if ($user_group == 1001) {
echo "All the text in script 2 with proper formatting.";
}
the only thing i thought was odd was the fact that i only needed $agent_name in the script to have it pop the agent name correct. IDK if this is due to the echo command being already inside php programming, or if it has something to do with the <iframe> but while <?php echo $agent_name; ?> and <?php echo $_GET['agent_name'] ?> did not work, simply putting $agent_name did work.
OK, I think I understand now, technically I'm doing echo "$agent_name"; , it's just that's there's text before the $ and between name and the "