how to conditionally submit a form without a button?

This is a discussion on how to conditionally submit a form without a button? within the PHP Language forums, part of the PHP Programming Forums category; Basically, my php script runs on my serve all day along. If the php script finds something new, I'd ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-28-2007
henry
 
Posts: n/a
Default how to conditionally submit a form without a button?

Basically, my php script runs on my serve all day along. If the php
script finds something new, I'd like to get an email alert(which is
done) and a cell phone alert, which has to be done through a "post"
form (not through email). Can any one give me some hint on how to do
this: conditionally submit a form without a button?

I guess I need some javascript? Many thanks.

Reply With Quote
  #2 (permalink)  
Old 06-28-2007
Jerry Stuckle
 
Posts: n/a
Default Re: how to conditionally submit a form without a button?

henry wrote:
> Basically, my php script runs on my serve all day along. If the php
> script finds something new, I'd like to get an email alert(which is
> done) and a cell phone alert, which has to be done through a "post"
> form (not through email). Can any one give me some hint on how to do
> this: conditionally submit a form without a button?
>
> I guess I need some javascript? Many thanks.
>


Is this your form? If so, I wouldn't even bother using a form - just do
it directly from your code.

But my impression is that it isn't your form - it belongs to your
cellular provider or similar.

In that case javascript won't help you (why would you even ask about it
in a PHP newsgroup?). You need to check out Curl.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Reply With Quote
  #3 (permalink)  
Old 06-28-2007
henry
 
Posts: n/a
Default Re: how to conditionally submit a form without a button?

Yes. The form belongs to my cellular provider. I post the question
here because the web page is written in PHP. Thanks.

On Jun 27, 11:22 pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> henry wrote:
> > Basically, my php script runs on my serve all day along. If the php
> > script finds something new, I'd like to get an email alert(which is
> > done) and a cell phone alert, which has to be done through a "post"
> > form (not through email). Can any one give me some hint on how to do
> > this: conditionally submit a form without a button?

>
> > I guess I need some javascript? Many thanks.

>
> Is this your form? If so, I wouldn't even bother using a form - just do
> it directly from your code.
>
> But my impression is that it isn't your form - it belongs to your
> cellular provider or similar.
>
> In that case javascript won't help you (why would you even ask about it
> in a PHP newsgroup?). You need to check out Curl.
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstuck...@attglobal.net
> ==================



Reply With Quote
  #4 (permalink)  
Old 06-28-2007
bill
 
Posts: n/a
Default Re: how to conditionally submit a form without a button?

henry wrote:
> Yes. The form belongs to my cellular provider. I post the question
> here because the web page is written in PHP. Thanks.
>
> On Jun 27, 11:22 pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
>> henry wrote:
>>> Basically, my php script runs on my serve all day along. If the php
>>> script finds something new, I'd like to get an email alert(which is
>>> done) and a cell phone alert, which has to be done through a "post"
>>> form (not through email). Can any one give me some hint on how to do
>>> this: conditionally submit a form without a button?
>>> I guess I need some javascript? Many thanks.

>> Is this your form? If so, I wouldn't even bother using a form - just do
>> it directly from your code.
>>
>> But my impression is that it isn't your form - it belongs to your
>> cellular provider or similar.
>>
>> In that case javascript won't help you (why would you even ask about it
>> in a PHP newsgroup?). You need to check out Curl.
>>


cUrl is the right way to do it, but are you sure your cellular
provider does not also have email submission of text messages ?
mine (Verizon) does.

bill
Reply With Quote
  #5 (permalink)  
Old 06-28-2007
jussist@gmail.com
 
Posts: n/a
Default Re: how to conditionally submit a form without a button?

> cUrl is the right way to do it, but are you sure your cellular
> provider does not also have email submission of text messages ?
> mine (Verizon) does.
>
> bill


And they don't provide any other means to messages, like soap-service?


--
Jussi

Deep abstraction kills strong typing.

http://disczero.com
http://naamio.net
http://hoffburger.com

Reply With Quote
  #6 (permalink)  
Old 06-28-2007
Jerry Stuckle
 
Posts: n/a
Default Re: how to conditionally submit a form without a button?

henry wrote:
> Yes. The form belongs to my cellular provider. I post the question
> here because the web page is written in PHP. Thanks.
>
> On Jun 27, 11:22 pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
>> henry wrote:
>>> Basically, my php script runs on my serve all day along. If the php
>>> script finds something new, I'd like to get an email alert(which is
>>> done) and a cell phone alert, which has to be done through a "post"
>>> form (not through email). Can any one give me some hint on how to do
>>> this: conditionally submit a form without a button?
>>> I guess I need some javascript? Many thanks.

>> Is this your form? If so, I wouldn't even bother using a form - just do
>> it directly from your code.
>>
>> But my impression is that it isn't your form - it belongs to your
>> cellular provider or similar.
>>
>> In that case javascript won't help you (why would you even ask about it
>> in a PHP newsgroup?). You need to check out Curl.
>>
>> --
>> ==================
>> Remove the "x" from my email address
>> Jerry Stuckle
>> JDS Computer Training Corp.
>> jstuck...@attglobal.net
>> ==================

>
>


No problem with posting here. And CURL is the way to go. See
http://www.php.net/curl.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 05:33 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0