PHP Script

PHP Script SearchSearch
Author Message
bwgames
Unregistered guest
Posted on Thursday, April 15, 2004 - 07:21 pm:   

Hi,

I've got the PHP script working if I put the data in the actual script, but I want to get a form, similar to the web interface's one. BUT, on a linux system, connecting to the server over HTTP. Can someone give me code for the form, with fields for the attachment that work on linux?

Thanks,

Ben
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2309
Registered: 10-2002
Posted on Monday, April 19, 2004 - 04:06 pm:   

Hi Ben,

Just take the existing form (you'll find it in the HTML subdirectory of NowSMS), and you can simply change the "form" header to include an "action" attribute that points to the NowSMS system.

For example "Send Text Message.htm" has the following form header:

<form method=Get enctype="application/x-www-form-urlencoded" onsubmit="clearTextBoxCounter()">

Add action="http://192.168.1.100:8800/" (substituting in the correct IP address or host name), and that would do the trick.

-bn