472,958 Members | 1,582 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Sending POST data without Submit button or javascript.

Ok, say I have some data:

$name = "Some Name"
$email = "so**@email.com"
etc.

I'd like to send these to a page as POST data, as if they were coming
from a web form, but without having either a "submit" button or using
Javascript's submit() function.

Is there a way to do this?

--
Sugapablo - ru***********@stargate.net
http://www.sugapablo.com | ICQ: 902845

Jul 16 '05 #1
3 23165
Sugapablo wrote:
I'd like to send these to a page as POST data, as if they were coming
from a web form, but without having either a "submit" button or using
Javascript's submit() function.

Is there a way to do this?


Yes. The easiest is to use a library or class that someone else wrote
for the purpose. Check this search and see if there is anything you can
use:
http://www.phpclasses.org/search.htm...and&sort=score

Jochen

--
/**
* @author Jochen Buennagel <zang at buennagel dot com>
* @see http://www.sourceforge.net/projects/zang
*/

Jul 16 '05 #2
Jochen Buennagel wrote:
Yes. The easiest is to use a library or class that someone else wrote
for the purpose. Check this search and see if there is anything you can
use:
http://www.phpclasses.org/search.htm...and&sort=score


The cHTTP class worked wonderfully.

Thanks.

--
Sugapablo - ru***********@stargate.net
http://www.sugapablo.com | ICQ: 902845

Jul 16 '05 #3
Jochen Buennagel wrote:
[color=blue]
> Yes. The easiest is to use a library or class that someone else wrote
> for the purpose. Check this search and see if there is anything you can
> use:
> http://www.phpclasses.org/search.htm...and&sort=score[/color]

The cHTTP class worked wonderfully.

Thanks.

--
Sugapablo - russpghREMOVE@stargate.net
http://www.sugapablo.com | ICQ: 902845
Hi, I just tryed also the cHTTP class, but didn't worked as expected for me:
When I execute my code, nothing happens. I was expecting to be redirected to the URL where I want to send data in POST.
here is my code:
<?
include("cHTTP.php");
//create instance of the class
$http = new cHTTP();
// to make posts
// clear all fields
$http->clearFields();

$http->addField ( 'email' , 'post1' );
$http->addField ( 'password' , 'post2' );

$http->postPage("http://www.sxmone.com/aroundme/testReader.php");
?>

Did you do it different? How can I be redirected to "testReader.php" with my info posted?
Apr 27 '06 #4

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

Similar topics

2
by: Person | last post by:
I have a popup window with a form: The popup window is opened like this: <SCRIPT LANGUAGE=javascript> window.open('primos.html', 'primos', config='height=300, width=400') </SCRIPT> The...
4
by: Dodo | last post by:
Is it possible to create a link that can post a value to an ASP page without java?
7
by: Matt | last post by:
Hi all, Not very sure about this. I have one button (not a submit button) will "post" partial page(form) info to another url(the user will also redirect to this url :-). I dont' want to change...
2
by: Matt | last post by:
When we submit the form data to another page, we usually do the following: <form action="display.aspx" method="post"> will submit the form data and open display.asp in the current browser ...
4
by: dschruth | last post by:
Hello. Can anybody solve this problem? I am using a server-side language (PERL) to *try* to POST data to a HTTPS login script that doesn't have a standard "submit" button. The form appears...
2
by: sunilthk | last post by:
Hi All, I have a question. If javascript is disabled how asp.net determines which control has caused the post back. As we know that when we clicks on the button the buttons name goes with posted...
2
by: rynato | last post by:
I have a form which the user fills out to enter some data. If there already exists an uncompleted session - say, the user started entering some data but had to stop to do something else - the...
7
xNephilimx
by: xNephilimx | last post by:
lHi guys! I'm having a little problem that's getting on my nerves, I couldn't find a solution, I also tryed googling it and I found nothing... (my field of expertise is in AS 2 and 3, but I still...
8
omerbutt
by: omerbutt | last post by:
hi there i have a form with multiple input (type/text ) fields and three inputs(type/file) fields i have to submit the form via ajax because i have multiple forms on this page ,you can say it is a...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.