Jump to content

PHP Submittal


KoA

Recommended Posts

I've Been Wondering

Is there any way that at a certain time a script can copy a text of a web page and submit the text into a simple form.

 

Is this possible.

 

For Example:

Every Day There is a New Riddle at 3PM

 

Would there be any way that at 3pm it copies the riddle, which is always in the same spot, and put it in a simple 1 form page?

Link to comment
Share on other sites

Why do you want to put it in a form? Does this form submit the data somewhere else?

 

Currently working on a Project.

I Have a page that shows a code

And at X Time I Want it to submit the code into a form on a different directory.

All the form does Atm is direct you to another location, but when it's completed data would be submitted to a database.

 

I Can get the cronjob working, however, it's the PHP I'm having difficulty with.

Link to comment
Share on other sites

Well, to put it simply. You dont want (need) to place the data into a form and then submit the form. All you need do is write the script to scrape the data, and insert into into the database.

It's sort of an 'Access Code'.

It will then redirect to what you can call a 'Members Area' then save the information used into a database.

 

Just looking for an automated script to copy the access code and then submit it.

 

I Can get the info into the database, then redirect.

Link to comment
Share on other sites

Just looking for an automated script to copy the access code and then submit it.

 

Yes, straight to a database. Why make it hard on yourself?

However, In order to get into the 'Members Area' the code needs to be submitted.

The database is not the only thing.

Link to comment
Share on other sites

Are you trying to submit data to a remote site or something you have control over? if the later, your trying to go about it the hard way, the former, you will need to take a look at the curl extension.

Currently I Have control of it, but i'm not trying to do it within the server it self.

It's my site

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.