Add bulk domain name to google search URL

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

AcornDomains.co.uk
Forum Newbie
Posts: 8
Joined: Fri Aug 06, 2004 6:48 pm

Post by AcornDomains.co.uk »

Code: Select all

<html> 
<head> 
<title>Google test</title> 
</head> 
<body> 
<form action="<?php 
$var = $_POST&#1111;'domain']; 
print($var); 
?>" method="post"> 
<textarea name="domain" rows="5" cols="50"></textarea>
<br><br>
<INPUT type=submit value="Check names">
</FORM>
</body> 
</html>
Now do I add a $URL= somewhere to state the Google URL?
User avatar
Joe
Forum Regular
Posts: 939
Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow

Post by Joe »

Code: Select all

<html>
<head>
<title>Google test</title>
</head>
<body>
<form action="script.php" method="POST">
<textarea name="domain" rows="5" cols="50"></textarea>
<br><br>
<INPUT type=submit value="Check names">
</FORM>
</body>
</html>
Where script.php is the backend script. you done it completely wrong by using the actual php for the action. I am afraid you will have to learn from some tutorials as explaining a process like this from scratch is fairly difficult.
AcornDomains.co.uk
Forum Newbie
Posts: 8
Joined: Fri Aug 06, 2004 6:48 pm

Post by AcornDomains.co.uk »

OK I split the PHP into script.php and put it in the same folder as the HTML

Now if I enter a domain in the text box and run it it returns the domain name onto the page as text.

Now I just need to figure out how to pass this to a URL line by line
User avatar
Joe
Forum Regular
Posts: 939
Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow

Post by Joe »

Im not to sure how that would be done but I would think using a loop and the strstr() function would work, not too sure though!
Post Reply