snlildude87
Members-
Content Count
2,350 -
Joined
-
Last visited
Everything posted by snlildude87
-
Well, yes. Only this part is the PHP code (this is the part you put in between the <?php ?>:if($content) { $from = $_POST["from"]; //gets the name of the person $email = $_POST["email"]; //gets their email address $content = "This message is from $from whose email address is $email.\r\n-----------\r\n "; //little intro of your email message that you will see in your inbox $content = $content . $_POST["content"]; //concatenates the intro with the real content $content = wordwrap($content, 70); //message must be no longer than 70 characters per line (PHP rule), so we wrap it mail('snlildude87@gmail.com', 'Someone Sent You Something!!!', $content); //first argument = your email address; second argument = subject of email (make it very catchy so you won't miss it); third argument = the content (DO NOT CHANGE THIS!!) echo "Your message has been sent, and if I like you, then you will receive a reply. Thank you."; //what you want to tell the user after sending } ?>The rest is all HTML. You can, of course, always convert HTML to PHP... I hope that answered your question.
-
Hi guys. I have another newbish PHP question. Today, I decided to make a new navigation bar for my site. It doesn't look good because I just started learning Flash today, so I was basically feeling my way around the application. Anyways, if you use Flash and you try to validate your site at /legacy, you get a lot of errors for some weird reason. So I was thinking about separating the markup for embed Flash from the rest of the site's source code. The problem with that is that I don't know a PHP function that will include, or execute a file, without showing the HTML of the included file. The only function I can think of is the include() function, but that shows the markup. Another alternative would be to make a JavaScript include. The problem with this is that some users have their JavaScript turned off because JS can do some pretty annoying stuff. If JS is turned off, there would be no navigation, and my precious users will be left in the dark (kind of like I was today with Flash). Any suggestions? Thanks
-
Yep, that's why. That's why the "Life Talk" forum is almost deserted because you do not get post counts or hosting credits for posting here as well as in the "Life Talk" forum. That's also why the admins decided to make Entertainment a forum of its own because no one was posting there, but that's life. Also, this is supposed to be a guest forum, so registered members feel "out of place" if they come here.
-
Today, I'm going to show you how to make an email script using PHP and HTML. Most people usually put <a href="mailto:blahblah@blah.blah">Email me</a> if they want an email link on their site, but there are several cons to this. First, it's very inconvenient for those people who use web-based mail such as Yahoo!, Hotmail, or Gmail because that darn Micro$oft Outlook program comes up if one accidently click the link. Second, you are very suseptible to spam bots because they scan your HTML source code for anything with the same pattern as an email address and add it to their database. If you are pretty popular on Google, you can expect mails like "Unlimited Bandw1dth!!1" or "Cows F0und 1n 0utersp4ace!!" in your inbox soon. The Tutorial Make a new file called mail.php in Notepad and copy and paste the following code:<html> <head> <title>My first email script</title> </head> <body> <?php if($content) { $from = $_POST["from"]; //gets the name of the person $email = $_POST["email"]; //gets their email address $content = "This message is from $from whose email address is $email.\r\n-----------\r\n "; //little intro of your email message that you will see in your inbox $content = $content . $_POST["content"]; //concatenates the intro with the real content $content = wordwrap($content, 70); //message must be no longer than 70 characters per line (PHP rule), so we wrap it mail('snlildude87@gmail.com', 'Someone Sent You Something!!!', $content); //first argument = your email address; second argument = subject of email (make it very catchy so you won't miss it); third argument = the content (DO NOT CHANGE THIS!!) echo "Your message has been sent, and if I like you, then you will receive a reply. Thank you."; //what you want to tell the user after sending } ?> <form method="post" action="mail.php"> <p>Name: <input type="text" name="from" title="Your name"></p> <p>Email: <input type="text" name="email"></p> <p>Message: <textarea rows="5" cols="15" name="content"></textarea></p> <input type="submit" value="Submit"> </form> </body></html> That's it! If you want to see the email script/form in action, I have set one up on my site here: http://forums.xisto.com/no_longer_exists/ Also, when someone sends you something with my script, you have to manually type in their email address. So after someone sends you a message, you will get the following in your email: You will have to copy whatever their email address is, and go to Compose in your mail provider to send them a reply. It's a hassle, but I promise, it won't take more than 1 minute. If you have any questions, concerns, comments, or ideas, feel free to post them below. Thanks and good luck!!
-
Haha, problem solved. I guess you got to start posting more to get your credits up to 30. :oThread closed
-
Problem With Trap17 Request Form I Cant Get The Page To Load
snlildude87 replied to wariorpk's topic in Web Hosting Support
Problem solved -> thread closed -
Problem With Trap17 Request Form I Cant Get The Page To Load
snlildude87 replied to wariorpk's topic in Web Hosting Support
Yeah, you're right. I'll inform vujsa. Until then, copy and paste everything below to fill your application. Where ever it says "Your answer", you put your answer: I would like to request free web hosting from Xisto. Please find my application below. Your Registered Domain Name or Desired Xisto Subdomain Name: Your answer Account Username: Your answer Introduction: Your answer Email Address: Your answer Age: Your answer Country Where I Live: Your answer My Websites Theme: Your answer Reason I Chose Xisto: Your answer How I Found Xisto: Your answer My Previous Host: Your answer Reason For Leaving My Previous Host: Your answer Desired Hosting Package: Your answer (Two possible answers: "#1: Starter Package" or "#2: Default Package" Additional Comments: Your answer I have read, understand, accept, and agree with the Terms Of Service, Acceptable Use Policy, and The Forum Rules: YES, I Agree! Thank You, [your username goes here] -
Yes, go to your cPanel, and tell me what this number says: Tell me the numerator for the fraction circled in the screenshot. If the two numbers are close to each other on the number line, then you will have to upgrade to Package 2, which will give you 150 MB instead of 20 MB. Edit: I originally put "Tell me the denominator..."
-
Finding the URL of a file after you upload it is pretty easy. First off, EVERYTHING goes INSIDE the "public_html" folder (refer to the screenshot below). Ignore all the stuff not inside the public_html folder. To access the public_html folder, go to your cPanel. Next, find "File Manager", and a window should pop up. You should see a bunch of folders and files and stuff. Your File Manager should look somewhat like this: Now, to upload your file so you can access it, go inside your public_html folder like my screenshot above says. Then, click on Upload to upload. Browse for a file by clicking one of the many "Browse" buttons, and click the Upload button once you have find the MP3 you want to upload. I am going to upload game.txt as my test file, but just pretend my game.txt is an mp3 file. After clicking the Upload button, you should be taken back to your public_html folder except this time, there should be a blurb that tells you that game.txt is uploaded (or in your case, blah.mp3). To find the URL of your mp3 file, scroll down on the left pane to find your mp3 file. I have scrolled down to find my game.txt file. After you find your mp3 file, click on the file name. One final note, it's against the Terms of Service of Xisto to upload anything copyrighted, so keep that in mind. If you have any questions left, feel free to PM me or post a reply
-
Problem solved -> thread closed
-
Yeah, could you please describe the error in full details? Including screenshots would help us visually-oriented people to help your problem. For starters, where is this message board of yours located?
-
Do it, whyme. I dare you. I want to see what you're made of. I want to see your skillz, so open that Photoshop 7, and start moving that mouse!
-
City Day/ Night Two graphics you can use for your sig...
snlildude87 replied to GM-University's topic in Art & Creativity
You have a very active imagination for a twenty year old (even though I'm three years younger than you). Well, shouldn't the water from the hurricane extinguish the fires? -
Sweet! The color is green, too. I'll put that on the very top of my page on the upcoming weekend when I have more time. Thanks
-
Yeah, same here. That's why I have hands, so I can wave and make signs to what I want to say. I gave you a gift, by the way. Enjoy your stay here And if you need anything, feel free to PM me anytime.By the way, how old are you? I'm 17.Edit: Added that last sentence.
-
Nice!! I'm going to edit my original post to include your method Go to My Computer -> C:\ -> apachefriends -> xampp -> htdocs. See the index.html file? Kill it. Delete it. Rename it. Edit it. Eat it. You get the idea - do whatever you want to that index.html file so that the code inside it will not execute: <html><head><meta name="author" content="Kai Oswald Seidler, Kay Vogelgesang"><meta http-equiv="refresh" content="0;url=/xampp/splash.php"></head><body bgcolor=#ffffff></body></html>As you can see from the code above, the index.html file will take you to the splash.php file as soon as it's opened, so you have to delete index.html and make your very own index.php file. Then, when you go to http://youripaddress/, your very own index page will show. I hope that made sense
-
I'll set up the background for the question: I have a separate file that I include on all the webpages on my site which I call with PHP using the include() function, so everything will be much easier to maintain and update. Well, I have three include files for each page: header.php (includes stuff like meta tags, googlebot/spider info), footer.php (the footer/copyright thing), leftnav.php (includes the navigation bar). I also like the titles of my pages to be as descriptive as possible so I try to include the path of a page (how the user got to that page: "Excite Yourself : Games : Reaction") between my <title> tags. Problem: The thing is that I've recently decided to change my site title to something less generic and more creative. I was thinking about moving the title tag in all my pages to the header file first. Is there a way so I can change all the "Excite Yourself"'s without having to update every single page on my site? Like, include the <title> tags in my header.php file? What I was thinking: I was thinking about putting this code in my site: <html><?php include("header(title of page).php");?>However, I don't think the code above is legal in PHP syntax. Then, in header.php, I can have a statement that takes in title of page and append that to "New Title Name : Games : Reaction" As you can tell, I'm not really good with PHP, but I did my best to try to explain to you my situation. Any help/suggestion is appreciated
-
A Function To Count The Number Of Lines In A String?
snlildude87 replied to beeseven's topic in Programming
Problem solved -> thread closed -
Problem solved -> thread closed