Results 1 to 8 of 8

Thread: I need some help please

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2006
    Posts
    55

    Question 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>";
    ?>

  2. #2
    Junior Member
    Join Date
    Apr 2006
    Posts
    18

    Re: I need some help please

    Did you chmod the txt files to 777?

  3. #3

    Thread Starter
    Member
    Join Date
    Jan 2006
    Posts
    55

    Re: I need some help please

    yeah i did

  4. #4
    Fanatic Member
    Join Date
    Oct 2004
    Posts
    751

    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.
    My Projects: [ Instant Messagener Client/Server ] [ VBPictochat ]

    My Sites:
    [ Datanethost ]
    [ Helpdesk ]

    Remember if my post was helpful then Rate This Post.

  5. #5

    Thread Starter
    Member
    Join Date
    Jan 2006
    Posts
    55

    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

  6. #6
    <?="Moderator"?> john tindell's Avatar
    Join Date
    Jan 2002
    Location
    Brighton, UK
    Posts
    1,099

    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

  7. #7
    Fanatic Member
    Join Date
    Oct 2004
    Posts
    751

    Re: I need some help please

    Quote 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.
    My Projects: [ Instant Messagener Client/Server ] [ VBPictochat ]

    My Sites:
    [ Datanethost ]
    [ Helpdesk ]

    Remember if my post was helpful then Rate This Post.

  8. #8
    Hyperactive Member PlaGuE's Avatar
    Join Date
    Jun 2005
    Location
    in ur mind.
    Posts
    445

    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
  •  



Click Here to Expand Forum to Full Width