vampires site
- 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
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
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
"TŖĪÇĦŐΜĔҗ ҜąžŤєř җ: fang's the most sexy offer"
-
- Nemesis
- Posts: 762
- Joined: Fri Nov 07, 2008 10:48 am
Re: vampires site
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.
- 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
ok i'll try that but vleh! now ima gonna have to check email everyday or somethin ._.
"TŖĪÇĦŐΜĔҗ ҜąžŤєř җ: fang's the most sexy offer"
- 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
nop not working O_O maybe i have error in code or something but all its doing is taking u to google O_O
"TŖĪÇĦŐΜĔҗ ҜąžŤєř җ: fang's the most sexy offer"
- Ghost
- Administrator
- Posts: 1894
- Joined: Fri Nov 07, 2008 12:25 am
- Lobby Username: [-Ts-] Ghost
- Location: San Francisco, CA, USA
Re: vampires site
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
-•¤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
- 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
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?
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?
"TŖĪÇĦŐΜĔҗ ҜąžŤєř җ: fang's the most sexy offer"
- Ghost
- Administrator
- Posts: 1894
- Joined: Fri Nov 07, 2008 12:25 am
- Lobby Username: [-Ts-] Ghost
- Location: San Francisco, CA, USA
Re: vampires site
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
-•¤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
-
- Nemesis
- Posts: 659
- Joined: Sat Apr 04, 2009 9:50 pm
Re: vampires site
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
- White Fang
- Senior Member
- Posts: 283
- Joined: Sat Mar 14, 2009 10:24 am
- Location: in the trees i have pathfinding O_O
-
- 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
I can enter the vampire clan?
-
- 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
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 postleandro wrote:I can enter the vampire clan?
Who is online
Users browsing this forum: No registered users and 1 guest