473,320 Members | 1,950 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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.

Jun 28 '07 #1
5 1658
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.
js*******@attglobal.net
==================
Jun 28 '07 #2
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.netwrote:
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
==================

Jun 28 '07 #3
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.netwrote:
>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
Jun 28 '07 #4
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

Jun 28 '07 #5
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.netwrote:
>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.
js*******@attglobal.net
==================
Jun 28 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Mattia | last post by:
Hi! I have a <form> that can be submitted thruogh three buttons and I need to tell witch one was pressed when the form was submitted. I now do it with 3 <input type="submit" name="..."...
15
by: M Smith | last post by:
I have a form I want to submit to itself. I want to be able to type in a list of numbers and submit the form and have that list show up on the same form under the text box I typed them into and...
8
by: bettina | last post by:
I want to submit a form but without a submit button. That's to say, I want that by giving a definite code in a field and then press <ENTER> the form will be submitted. For Example <form...
4
by: Dmitry Korolyov [MVP] | last post by:
When we use btnSubmit.Attributes = "javascript: this.disabled=true;" to make the button disabled and prevent users from clicking it again while form data still posting, there is no longer...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.