473,563 Members | 2,735 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1368
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
2000
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 and found dated 1996 and 1997... This is a bit too old for me to rely on... Thus... Does anyone know if there is a limit when POSTing? I think a
1
1499
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 language="JavaScript"> function ClickMe(Cat, Nbr, Nav){ document.forms.inCat.value = Cat; document.forms.inNbr.value=Nbr; document.forms.inNav.value =...
9
3580
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 click on a submit button. I want to automate this process by supplying values with HttpWebRequest and then download a file on the site. I think that...
4
1618
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 but want to post the data to another form so that at the asp page level we can use request.form values. Any leads would definately be appreciated.
1
1005
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 some clarity on what is going on here. I have numerous forms on my secure server (those for logging in, registering, checking out etc.), and on some...
7
1496
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 syntax for that deferred call? Raiseevent seems to be synchronous, as does just calling the handler subroutine. Also, how do I defer processing to...
1
54484
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 we instruct our experts to ignore any such PMs completely Be sure to give the version of Access that you are working with and the Platform and OS if...
0
2542
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... #!usr/bin/perl -w use strict; use LWP; use LWP::Simple; use LWP::UserAgent; use HTML::Form; use Switch; use HTTP::Cookies;
3
1367
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 old asp. The different forms are on the same web site. None of the asp.net forms work, but all the asp forms work. There is no problem just loading...
3
1749
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, but i dont see a form name, also, there is only 1 form on the page <POST https://somesite.com/login.html application/x-www-form- urlencoded...
0
7659
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7580
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7882
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7634
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7945
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5208
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3618
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2079
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
916
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.