|
-
Apr 13th, 2006, 02:05 PM
#1
Thread Starter
Member
I need some help please
ok i'm making a site and i'm trying to have a link submit. but for some reason the code doesn't work. My idea is this when the user press the submit key it transfers to another file that rights the info to a text, then i could put that file to show on a page. but it wount right the info that the user rights i was wondering if you guys could help me out here is the code
<?php
require "variables.php";
$textfile = ("links.txt");
$textfile2 = ("emails.txt");
$fp = fopen($textfile, "a+");
fputs ($fp, "<center><table><tr><td bgcolor=666666 width=500 height=20><font size=2><img src=$imagedir/browser.gif><strong><a href=http://$wsurl target=_blank><font size=4>$wsname</font></a></strong></td></tr><tr><td bgcolor=cccccc width=400><font size=2><font color=000000>$description</font></td></tr></table></center><br><br>\n");
fclose($fp);
$fp = fopen($textfile2, "a+");
fputs ($fp, "$email\n");
fclose($fp);
echo "<html> <title>$title</title><body bgcolor=006699 text=FFFFFF link=FFFFFF vlink=FFFF00 alink=FF0000><font color=FFFFFF size=3 face=verdana><br><center><br> $text1<br>$text2 <br><a href=\"$url1 \" target=_blank\"> $urltext1</a><br><br>Your site has been successfully added. <a href=$viewpage>Click here</a> to view the Link List page.</center></html>";
?>
-
Apr 14th, 2006, 02:12 AM
#2
Junior Member
Re: I need some help please
Did you chmod the txt files to 777?
-
Apr 14th, 2006, 11:52 AM
#3
Thread Starter
Member
Re: I need some help please
-
Apr 14th, 2006, 01:04 PM
#4
Fanatic Member
Re: I need some help please
Well, your HTML is wrong some of the atributes should be in quotes like <a href="whatever">Link text</a>.
Prehaps your hoster disabled writing of files?
Maybe it is really writing out the file, just that you need to fix your HTML.
-
Apr 14th, 2006, 05:33 PM
#5
Thread Starter
Member
Re: I need some help please
well it's not my host because i use my computer to host so i don'y know
and it's not html it's php
-
Apr 15th, 2006, 04:19 AM
#6
<?="Moderator"?>
Re: I need some help please
Whats in the variables.php file? Do you have register globals turned on? If not then try using the $_POST or $_GET, depending on how the forms submitted, super gloabl to get the variables.
PS. Please use the [PHP][/PHP] tags to help people read you code. Thanks
-
Apr 15th, 2006, 01:05 PM
#7
Fanatic Member
Re: I need some help please
 Originally Posted by marc180
well it's not my host because i use my computer to host so i don'y know
and it's not html it's php
Code:
<center><table><tr><td bgcolor=666666 width=500 height=20><font size=2><img src=$imagedir/browser.gif><strong><a href=http://$wsurl target=_blank><font size=4>$wsname</font></a></strong></td></tr><tr><td bgcolor=cccccc width=400><font size=2><font color=000000>$description</font></td></tr></table></center><br><br>
Thats HTML, not PHP.
-
Apr 16th, 2006, 03:48 AM
#8
Hyperactive Member
Re: I need some help please
OMFGROFLMAOPWNDJOORASS
Sorry but killer here i right.
HTML is "What you see is what you get"
PHP is "WHAT YOU SEE IS WHAT YOU GET BUT HOW IT WAS DONE IS A MYSTERY TO YOU."
PHP is server side.
HTML Client Side.I think...hmm..idk..prolly.
Without balance, there could only be chaos.
Without chaos, there could be no balance.
I live with karma. Eat with destiny. Dream of life without shackles....
Yet. If life had no consequences, life could not exist, nor could it flourish.
If at first you dont succeed.You're screwed.
C++/Java NOOB.
I aint a professional at PHP, but if i can help i will.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|