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 » Fri Aug 06, 2004 8:39 pm
Code: Select all
<html>
<head>
<title>Google test</title>
</head>
<body>
<form action="<?php
$var = $_POSTї'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?
Joe
Forum Regular
Posts: 939 Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow
Post
by Joe » Fri Aug 06, 2004 8:46 pm
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 » Fri Aug 06, 2004 8:55 pm
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
Joe
Forum Regular
Posts: 939 Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow
Post
by Joe » Fri Aug 06, 2004 9:03 pm
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!