473,396 Members | 1,891 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,396 software developers and data experts.

posting Forms

Hi,

I am kind of new to PHP so this might be a stupid question, but here it
is anyway. If there is a form, let's say somewhere on the web with a
couple of input fields and a submit button. Can I pull that .html (or
whatever extension it is) in a PHP object and then post it with the
input fields filled with what I want? And then show the result to the
user? How would that be done?

Thanks
Rok

Dec 20 '05 #1
2 1360
sp******@gmail.com wrote:
Hi,

I am kind of new to PHP so this might be a stupid question, but here it
is anyway. If there is a form, let's say somewhere on the web with a
couple of input fields and a submit button. Can I pull that .html (or
whatever extension it is) in a PHP object and then post it with the
input fields filled with what I want? And then show the result to the
user? How would that be done?

Hi,

You are not building something naughty, are you?
I do not see the point of what you are trying to accomplish.

Anyway: if you look at some form, and just copy all inputfields, including
any of the hidden-type, you are ready.
If you get that form and post it to the same address it was posting before
(action in form), you probably get a result back.

Why don't you just try it instead of asking here?

Regards,
Erwin Moller

Thanks
Rok


Dec 20 '05 #2
Hello,

on 12/19/2005 11:58 PM sp******@gmail.com said the following:
I am kind of new to PHP so this might be a stupid question, but here it
is anyway. If there is a form, let's say somewhere on the web with a
couple of input fields and a submit button. Can I pull that .html (or
whatever extension it is) in a PHP object and then post it with the
input fields filled with what I want? And then show the result to the
user? How would that be done?


If you mean making a new post request to the same or other server, you
may want to try this HTTP client class that can be used to submit POST
requests with form values among other things:

http://www.phpclasses.org/httpclient
--

Regards,
Manuel Lemos

Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
Dec 20 '05 #3

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

Similar topics

8
by: Randell D. | last post by:
Folks, Sorry for the cross post into multiple newsgroups on this, but html forms processing is supported across all three groups so I was hoping someone might know. I did a check with Google...
1
by: Jack Fox | last post by:
The following posts back properlty from an "onclick" in IE, but not in Mozilla 1.7. Can anyone explain to me why not? The style class works the same in both environments. <HEAD> <SCRIPT...
9
by: buran | last post by:
Dear ASP.NET Programmers, How can I post data to an ASP.NET login page and pass authentication? The login page uses forms authentication, users must supply usernames and password and have to...
4
by: Newbie | last post by:
Hi, I need help in posting asp .net application web form to another asp based web app. I have seen many examples using HttpWebRequest class but the problem is I do not want the request back...
1
by: GrantMagic | last post by:
Since installing .Net framework v1.1 Service Pack, i have found some issues regarding post backs on my secure server. I have also read about many people having similair issues and for once want...
7
by: Jeff Casbeer | last post by:
New to VB.. What is the VB syntax for posting a Windows event? For example, to have an event fire AFTER a form loads, I'd add a posted call to a "post_load" event, from "load". What is the VB...
1
PEB
by: PEB | last post by:
POSTING GUIDELINES Please follow these guidelines when posting questions Post your question in a relevant forum Do NOT PM questions to individual experts - This is not fair on them and...
0
by: sharif | last post by:
Anyone could help me out for n=my code ......I have written following code ,Here i m able to get and post the form successfuly..but after posting im not gettng proper response content... ...
3
by: ollebollebagare | last post by:
For the last few days some of my web site users have been having problems posting asp.net forms. This problem arises everytime they try to post a form in asp.net, but never when the page is plain...
3
by: scripteaze | last post by:
posting to a form with no form name or it's just that i cant find the form name. can anyone explain how to either post to a form with no name or, find the name of the form..here my current output,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.