从VBA将变量传递给PHP? [英] Pass variables to PHP from VBA?

查看:128
本文介绍了从VBA将变量传递给PHP?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,如果发布此内容错误,我会道歉;如果它在其他地方更合适,你能告诉我,还是mod可以为我移动它。谢谢。



Access 2003



第一个下面的代码是工作的PHP,如果我把它编程到手机并硬编码数字和IP地址(x'为了安全)。当然这使得它适用于一个手机,只有一个号码。

First of all I apologise if this is the wrong place to post this; if it fits better somewhere else, could you either tell me, or could a mod move it for me. Thanks.


Access 2003

I''ve set up a phone system (using trixbox if anyone''s familiar with it); and I''d like to be able to click a button on our database which will send the phone number to the phone to dial, without having to type the number in.

The first code below is the php that works, if I have it programmed into the phone and hard-code the number and the IP address (x''d out for security). Of course this makes it work for one phone, with one number.

展开 | 选择 | Wrap | 行号

推荐答案

Mandi,我根本不懂PHP,但只是通过观察就可以看出一些概念。


我认为你在VBA中的目标是否正确代码是创建一个存储所有早期PHP代码的大字符串。例外情况是PHP代码的第25行(在字符串中)实际设置为表单中的数字?
Mandi, I don''t know PHP at all, but some of the concepts seem clear just by looking at it.

Would I be right in thinking that your aim in the VBA code is to create a large string where all the earlier PHP code is stored. The exception being that line #25 of your PHP code (in the string) is actually set to the number from your form?



Mandi ,我根本不懂PHP,但有些概念看起来很清楚。


我认为你在VBA代码中的目标是正确的创建一个存储所有早期PHP代码的大字符串。您的PHP代码的第25行(在字符串中)实际上是否设置为表单中的数字?
Mandi, I don''t know PHP at all, but some of the concepts seem clear just by looking at it.

Would I be right in thinking that your aim in the VBA code is to create a large string where all the earlier PHP code is stored. The exception being that line #25 of your PHP code (in the string) is actually set to the number from your form?



排序。设置VBA以使xml传递给手机;用数字和名称填充相关区域(如果存在),如果不存在则排除该部分。因此这三个部分;一个用于手机,一个用于移动,一个用于将它们全部拉到一起。

所以是的,这是我需要的字符串。


我能理解PHP,我知道它做了什么,我只是不知道如何将硬编码的xml从VBA更改为变量xml。 (解释我自己从来都不是我的强项;我道歉)


要从手机运行PHP,我编程按钮转到URL http://xx.xx.xx .xx / callfromdb.php这是电话服务器的IP和PHP文件的名称。

所以我假设我需要发布XML和相关的手机IP(基于用户;我可以排序用表和DLookUp)将PHP插入相关位置。


我一直在看此站点在这里这是我从中获取PHP的地方。我认为第14页和第44页是最相关的。


这有意义吗?

Sort of. The VBA is set up to make the xml to be passed to the phone; populating the relevant areas with numbers and names if they exist, and excluding that section if they don''t. Hence the three sections; one for phone, one for mobile, one to pull it all together.
So yes, that''s the string I need.

I can understand the PHP, I know what it does, I just don''t know how I can change the hardcoded xml to the variable xml from the VBA. (Explaining myself has never been my strong point; I apologise)

To run the PHP from the phone I program the button to go to the URL http://xx.xx.xx.xx/callfromdb.php which is the phone server IP and name of the PHP file.
So I assume I need to post the XML and relevant phones IP (based on the user; I can sort that with a table and DLookUp) to the PHP to be inserted into the relevant places.

I''ve been looking at this site here which is where I got the PHP from. Pages 14 and 44 are most relevant I think.

Does this make sense?


我认为我需要将其视为表格数据。我需要说出来。

例如,如果我使用vba命名xml''xmlstring''和相关的IP地址''phoneip'',那么,在PHP中,如果我用类似
I think that I need to think of this like form data. I need to name it.
For example, if I used the vba to name the xml ''xmlstring'' and the relevant IP address ''phoneip'', then, in the PHP, if I called them with something like
展开 | 选择 | Wrap | 行号


这篇关于从VBA将变量传递给PHP?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆