vampires site

For help with using your hosting service or resolving technical issues.
Post Reply
User avatar
White Fang
Senior Member
Posts: 283
Joined: Sat Mar 14, 2009 10:24 am
Location: in the trees i have pathfinding O_O

vampires site

Post by White Fang »

ok php is working 0.0! but now im having trouble storing the data that a user inputs into the text box in my join page O_o anyone have any code to help store the data >.<? the data being sents variable is "join" without quotation marks o.o...

heres the code for the text box:
<form method="post"
action="VRecruits.php">
<input type="text" name="join" value=""></input>
<input type="submit"></input>
</form>

and heres the code for php:

<?php

$join = $_REQUEST["join"];
print "thanks! $join but if your seeing this message i still havent got this to work lol o_O"


?>


i just need to know how to keep the data so i can view it later and contact them o.o
Image
"TŖĪÇĦŐΜĔҗ ҜąžŤєř җ: fang's the most sexy offer"

10010 1111 10
Nemesis
Posts: 762
Joined: Fri Nov 07, 2008 10:48 am

Re: vampires site

Post by 10010 1111 10 »

I'm not entirely clear on what you are attempting to do. Are you looking to have form data stored? If so I suggest using a html 'form data to email' method.
Image

User avatar
White Fang
Senior Member
Posts: 283
Joined: Sat Mar 14, 2009 10:24 am
Location: in the trees i have pathfinding O_O

Re: vampires site

Post by White Fang »

ok i'll try that but vleh! now ima gonna have to check email everyday or somethin ._.
Image
"TŖĪÇĦŐΜĔҗ ҜąžŤєř җ: fang's the most sexy offer"

User avatar
White Fang
Senior Member
Posts: 283
Joined: Sat Mar 14, 2009 10:24 am
Location: in the trees i have pathfinding O_O

Re: vampires site

Post by White Fang »

nop not working O_O maybe i have error in code or something but all its doing is taking u to google O_O
Image
"TŖĪÇĦŐΜĔҗ ҜąžŤєř җ: fang's the most sexy offer"

User avatar
Ghost
Administrator
Posts: 1894
Joined: Fri Nov 07, 2008 12:25 am
Lobby Username: [-Ts-] Ghost
Location: San Francisco, CA, USA

Re: vampires site

Post by Ghost »

How exactly do you want the data stored? In a text file that you can view on your website or download from the FTP? Send it to your email? Either way you're going to be checking something on a regular basis.
"Nothing is foolproof to a sufficiently talented fool."
-•¤Lazy Bone¤•-: we had to double ghost or we had no chance
•§ITHLORD§•(surfer): artylery give no many domage on aa mobile since 3 day

User avatar
White Fang
Senior Member
Posts: 283
Joined: Sat Mar 14, 2009 10:24 am
Location: in the trees i have pathfinding O_O

Re: vampires site

Post by White Fang »

i dont really know how to do it but is their a way to make it save on notepad o_o?
like i saw this code that automatically ran whenever the data was sent and it copy and pasted the data to and excel spreadsheet but im wondering if u can do that for notepad o.O?
Image
"TŖĪÇĦŐΜĔҗ ҜąžŤєř җ: fang's the most sexy offer"

User avatar
Ghost
Administrator
Posts: 1894
Joined: Fri Nov 07, 2008 12:25 am
Lobby Username: [-Ts-] Ghost
Location: San Francisco, CA, USA

Re: vampires site

Post by Ghost »

VRecruits.php:

Code: Select all

<html>
<head>
    <title>Results</title>
</head>
<body>

<?php
try
{
    // set name
    $name = $_POST["join"]
    
    // file to be written to on server
    $filename = "recruits.txt";
    
    // open file for appending
    $file = fopen($filename, 'a') or die("Unable to open file.");
    
    // append
    $data = "$name\n";
    fwrite($file, $data);

    // close file
    fclose($file);
    
    echo "Thank you, $name, for your submission."
}
catch { echo "Submission failed." }
?>

</body>
</html>
"Nothing is foolproof to a sufficiently talented fool."
-•¤Lazy Bone¤•-: we had to double ghost or we had no chance
•§ITHLORD§•(surfer): artylery give no many domage on aa mobile since 3 day

SlipKnoT
Nemesis
Posts: 659
Joined: Sat Apr 04, 2009 9:50 pm

Re: vampires site

Post by SlipKnoT »

White Fang wrote:ok i'll try that but vleh! now ima gonna have to check email everyday or somethin ._.

you dont do that already?!?! thats odd
Image
Image

User avatar
White Fang
Senior Member
Posts: 283
Joined: Sat Mar 14, 2009 10:24 am
Location: in the trees i have pathfinding O_O

Re: vampires site

Post by White Fang »

thanks ghost its working now ^^
Image
"TŖĪÇĦŐΜĔҗ ҜąžŤєř җ: fang's the most sexy offer"

leandro
Novice Member
Posts: 11
Joined: Sat Feb 05, 2011 4:52 pm
Xfire: Tomba
Lobby Username: ][≈◦פิโдвﻈǿ Tǿmвд™◦≈]
Location: Mendoza argentina
Contact:

Re: vampires site

Post by leandro »

I can enter the vampire clan?

USOLA
Global Moderator
Posts: 521
Joined: Thu Apr 16, 2009 3:44 pm
Xfire: usola
Lobby Username: usola
Location: Los Angeles CA USA

Re: vampires site

Post by USOLA »

leandro wrote:I can enter the vampire clan?
if you want to join the vampires clan go to http://vampires.ee-clans.com/portal.php?p=Forum and under JOIN US submit a post
Image

Post Reply

Return to “ee-clans.com Hosting Help”

Who is online

Users browsing this forum: No registered users and 2 guests