Form submit variable to PHP

Status
Not open for further replies.

guerilla

All we do is win
Aug 18, 2007
11,426
428
0
No
I am using Mark's (Digerati) Taggrabber PHP class.

Digerati Marketing CURL Page Scraping Script

Because I am a loser, I fill in the urlrun variable by hand in the PHP file.

But I want to be able to pass it through a form and trigger the scaper.
Code:
<?php

// Inlcude our tag grab class

require("taggrab.class.php"); // class for spider

// Enter the URL you want to run

$urlrun="http://www.techcrunch.com/";


Could someone help me construct a simple submit field to do this?




+rep and eternal undying love in return for assistance
 


HTML File:

Code:
<form action="scraper.php" method="post">[FONT=monospace]
[/FONT]<input type="text" id="urlrun">
<input type="submit" value="Run Scraper">[FONT=monospace]
[/FONT]</form>
PHP:

Code:
<? $urlrun = $_POST['urlrun']; ?>
 
  • Like
Reactions: guerilla
I think that will work. Thanks a lot Tyler. Rep given, eternal gratitude enshrined in my heart.
 
Rage, I can't code. (Sounds like I CANT READ lol)

That works awesome for me. Just swap up the tags to scrape, plug in an URL and I can be scraping all sorts of goodies in under 2 minutes.
 
Rage, I can't code. (Sounds like I CANT READ lol)

That works awesome for me. Just swap up the tags to scrape, plug in an URL and I can be scraping all sorts of goodies in under 2 minutes.

I understand, I just need to make my coding e-penis feel good ya know?
 
Holy fuck you fail for attempting PHP code yet not knowing the very simple solution.

Are you going to ask us how to turn your computer on now too?

HJoly fuck I'm irritated again tonight too. Lol.
Therefore, I must take it out on WF too. LMAO.
 
Status
Not open for further replies.