0

Let's say I have sugarcrm cases where I know what the case id and or number is.

I want to use email to sms to send to the techs what their work is. So, the link that needs to be sent must have the id and number in it. I want to send them to a simple PHP page that just has a dropdown menu with the two options accept and complete.

so if they receive the sms, they click on the link, it takes them to the page where they click on dropdown to accept the case.

Updating from the PHP is easy: it's just an update my sql query. I need to know how to send header or info in the link that the tech receives.

something like http://tech.com/caseupdate.php?case_number?case_id

so I can use that case number/id when updating

4

2 回答 2

0

不知道这是否正确,但通过执行以下操作使其正常工作

<input type="hidden" name="casen" value=<?php echo $casen;?>>

谢谢大家的帮助。

这是新手学习和获得帮助以解决问题的绝佳站点。

于 2013-02-27T19:54:29.660 回答
0

你需要这样的东西:

查询字符串中的每个变量都应该用 & 分隔,正如 +War10ck 所说

即:http://tech.com/caseupdate.php?case_number=[num]&case_id=[id]

然后在您的 PHP 中,您可以使用 $_GET[] 获取这些变量。

<?php
if(isset($_GET['case_number'])  && isset($_GET['case_id'])) {
    $casen = (int) $_GET['case_number']; // assuming you need an Int value
    $caseid = (int) $_GET['case_id'];
    /* do your MySQL thing here now with $casen and $caseid */
}
?>
于 2013-02-22T14:42:45.330 回答