PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > alt.php > Submitting Data to HTML Forms?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Submitting Data to HTML Forms?

Réponse
 
LinkBack Outils de la discussion
Vieux 21/11/2007, 19h27   #1
James A
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Submitting Data to HTML Forms?

Hi,

Could someone please suggest the basic steps I need to take to automatically
submit a set of data to an online form using PHP? These are basic HTML forms
with text fields and option lists, and the form method is Post. I would like
to automate the submission process. Do I need to set up a dummy form on a
page of my own with the same input fields, populate their values, and then
use the action of the form I am trying to submit to? Or is there another
way?

Many thanks.

--
James


  Réponse avec citation
Vieux 21/11/2007, 19h56   #2
Tom
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Submitting Data to HTML Forms?

On Wed, 21 Nov 2007 18:27:38 GMT, James A wrote...
>
>Hi,
>
>Could someone please suggest the basic steps I need to take to automatically
>submit a set of data to an online form using PHP? These are basic HTML forms
>with text fields and option lists, and the form method is Post. I would like
>to automate the submission process. Do I need to set up a dummy form on a
>page of my own with the same input fields, populate their values, and then
>use the action of the form I am trying to submit to? Or is there another
>way?
>
>Many thanks.
>
>



I'm not sure if I understand your question. You can use a web form to send data
to a program (the action setting) to be processed. You normally have to input
data into a form before it is submitted, so I'm not sure what you are trying to
automate?

Tom
--
NewsGuy Accounts Go Jumbo!
Extra NewsGuy increased from 30 to 50 GB of download capacity
http://newsguy.com/overview.htm

  Réponse avec citation
Vieux 21/11/2007, 20h04   #3
James A
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Submitting Data to HTML Forms?

"Tom" <tom@to.com> wrote in message news:fi1v0h021h5@drn.newsguy.com...
> On Wed, 21 Nov 2007 18:27:38 GMT, James A wrote...
>>
>>Hi,
>>
>>Could someone please suggest the basic steps I need to take to
>>automatically
>>submit a set of data to an online form using PHP? These are basic HTML
>>forms
>>with text fields and option lists, and the form method is Post. I would
>>like
>>to automate the submission process. Do I need to set up a dummy form on a
>>page of my own with the same input fields, populate their values, and then
>>use the action of the form I am trying to submit to? Or is there another
>>way?
>>
>>Many thanks.
>>

>
> I'm not sure if I understand your question. You can use a web form to send
> data
> to a program (the action setting) to be processed. You normally have to
> input
> data into a form before it is submitted, so I'm not sure what you are
> trying to
> automate?
>
> Tom
> --
> NewsGuy Accounts Go Jumbo!
> Extra NewsGuy increased from 30 to 50 GB of download capacity
> http://newsguy.com/overview.htm
>


Hi, apologies for not clarifying this very well. The forms are on
third-party websites that I have no control of. Until now I have had to
enter the data on those forms by hand. Instead of that I want to submit the
data to those forms automatically using code. The data to populate the forms
is in a database and I can retrieve it fine. I'm just not sure how to submit
it to the forms on those sites. Thanks.

--
James


  Réponse avec citation
Vieux 21/11/2007, 20h17   #4
Animesh K
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Submitting Data to HTML Forms?

James A wrote:

>
> Hi, apologies for not clarifying this very well. The forms are on
> third-party websites that I have no control of. Until now I have had to
> enter the data on those forms by hand. Instead of that I want to submit the
> data to those forms automatically using code. The data to populate the forms
> is in a database and I can retrieve it fine. I'm just not sure how to submit
> it to the forms on those sites. Thanks.
>
> --
> James
>
>


It seems you want to flood some third party website. And you are seeking
benevolent for that.
  Réponse avec citation
Vieux 21/11/2007, 20h24   #5
James A
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Submitting Data to HTML Forms?


"Animesh K" <animesh1978@gmail.com> wrote in message
news:fi208j$phb$1@agate.berkeley.edu...
> James A wrote:
>
>>
>> Hi, apologies for not clarifying this very well. The forms are on
>> third-party websites that I have no control of. Until now I have had to
>> enter the data on those forms by hand. Instead of that I want to submit
>> the data to those forms automatically using code. The data to populate
>> the forms is in a database and I can retrieve it fine. I'm just not sure
>> how to submit it to the forms on those sites. Thanks.
>>
>> --
>> James

>
> It seems you want to flood some third party website. And you are seeking
> benevolent for that.


Just wondering why you assume that? I simply spend 15 minutes of my time
each day entering data into a form on a set of 6 news submission websites,
data that I already have in a MySQL db, and would like to automate the
process with some PHP glue. If a friendly coder would like to assist that
would be great, thanks!

--
James


  Réponse avec citation
Vieux 21/11/2007, 21h39   #6
Jerry Stuckle
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Submitting Data to HTML Forms?

James A wrote:
> Hi,
>
> Could someone please suggest the basic steps I need to take to automatically
> submit a set of data to an online form using PHP? These are basic HTML forms
> with text fields and option lists, and the form method is Post. I would like
> to automate the submission process. Do I need to set up a dummy form on a
> page of my own with the same input fields, populate their values, and then
> use the action of the form I am trying to submit to? Or is there another
> way?
>
> Many thanks.
>
> --
> James
>
>
>


James,

Check out the cURL extension to PHP. It will do what you want.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

  Réponse avec citation
Vieux 21/11/2007, 21h49   #7
James A
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Submitting Data to HTML Forms?

"Jerry Stuckle" <jstucklex@attglobal.net> wrote in message
news:u7KdnW4ks94MCtnanZ2dnUVZ_vninZ2d@comcast.com. ..
> James A wrote:
>> Could someone please suggest the basic steps I need to take to
>> automatically submit a set of data to an online form using PHP?>>

<snip>
>
> Check out the cURL extension to PHP. It will do what you want.
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstucklex@attglobal.net
> ==================
>


Many thanks, Jerry. That looks ideal.

--
James


  Réponse avec citation
Vieux 21/11/2007, 21h49   #8
James A
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Submitting Data to HTML Forms?


"Jerry Stuckle" <jstucklex@attglobal.net> wrote in message
news:u7KdnW4ks94MCtnanZ2dnUVZ_vninZ2d@comcast.com. ..
> James A wrote:
>> Hi,
>>
>> Could someone please suggest the basic steps I need to take to
>> automatically submit a set of data to an online form using PHP? These are
>> basic HTML forms with text fields and option lists, and the form method
>> is Post. I would like to automate the submission process. Do I need to
>> set up a dummy form on a page of my own with the same input fields,
>> populate their values, and then use the action of the form I am trying to
>> submit to? Or is there another way?
>>
>> Many thanks.
>>
>> --
>> James
>>
>>
>>

>
> James,
>
> Check out the cURL extension to PHP. It will do what you want.
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstucklex@attglobal.net
> ==================
>



  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 09h20.


Édité par : vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,13402 seconds with 16 queries