DragonPrime - LoGD Resource Community
Welcome Guest
  • Good evening, Guest.
    Please log in, or register.
  • May 20, 2013, 08:40:46 PM
Home Forums News Links Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
IRC Channels
Search

Pages: [1]   Go Down
  Print  
Author Topic: Contact Forms  (Read 1372 times)
0 Members and 1 Guest are viewing this topic.
Seeker
Guest
« on: June 11, 2007, 03:06:14 PM »

I've been creating a couple of forms off of websites and they have given me HTML text. I copied and pasted it onto notepad and saved it as contactform.php. I tried uploading it to various places in my FTP. No luck. Any help would be appreciated.
Logged
Craze
Guest
« Reply #1 on: June 11, 2007, 03:08:20 PM »

No luck because HTML is not PHP. You'll need to use PHP coding for what you want, I believe...
Logged
Talisman
Administrator
Mod God
*****
Offline Offline

Posts: 5427



View Profile WWW
« Reply #2 on: June 11, 2007, 03:08:55 PM »

What you copy from your browser is not php, and pasting it into a file with a php extension will not suddenly make it php.

Amongst other things here, you haven't even described what you want the form to do; does it even have anything to do with the LoGD game?

To learn how to use PHP to create interactive forms, I would suggest you visit that Google site and look for some tutorial websites - teaching you how to create basic forms is not within the scope or mandate of DragonPrime.
Logged

Play the latest beta version here on DragonPrime
rolland
Guest
« Reply #3 on: June 11, 2007, 03:11:21 PM »

I made one, just save it as .htm like this one http://tynastera.com/StaffForm.htm
Logged
Seeker
Guest
« Reply #4 on: June 11, 2007, 03:14:20 PM »

I've seen contact forms like what I wish on a few RPGs.

The forms I wish to create will allow users to contact me Via email. I don't think it has anything to do with LotGD, then again I could be wrong.
Logged
Craze
Guest
« Reply #5 on: June 11, 2007, 03:16:48 PM »

I've seen contact forms like what I wish on a few RPGs.

The forms I wish to create will allow users to contact me Via email. I don't think it has anything to do with LotGD, then again I could be wrong.

Rolland has just gievn you an example of one... However, your players should find YoM to be sufficient in contacting you, if you wish for them all to have you email, why not post it in an motd?
Logged
Seeker
Guest
« Reply #6 on: June 11, 2007, 03:20:28 PM »

ok, in My Documents I have a saved HTML document that IS the file that I want to upload. I don't know WHERE to upload it to. (it's the exact document with no PHP in it.)
« Last Edit: June 11, 2007, 03:23:54 PM by Seeker » Logged
Seeker
Guest
« Reply #7 on: June 11, 2007, 03:41:55 PM »

Whenever one capable of answering this logs in I would like assistance with this thread, thanks.
Logged
Talisman
Administrator
Mod God
*****
Offline Offline

Posts: 5427



View Profile WWW
« Reply #8 on: June 11, 2007, 03:52:16 PM »

I shall, at this point, reiterate that the question you are asking is not within the scope or mandate of DragonPrime to answer.

You are seeking help with Web page design, not game code design.

Google...
Logged

Play the latest beta version here on DragonPrime
SaucyWench
Moderator
Mod God
*****
Offline Offline

Posts: 2238


I'm a good girl.


View Profile WWW
« Reply #9 on: June 12, 2007, 12:06:43 AM »

Whenever one capable of answering this logs in I would like assistance with this thread, thanks.

If you're just going to be rude all the time I will start deleting your posts.

Show some humility. The fact is you have no clue what you're doing and you want our help. So ask it and listen to the answers instead of insulting people.

I believe you want a form mailer. You want a form they fill out with their name etc, and then click SUBMIT at the end and it mails to you without them ever seeing your email address? Then you cannot do this with just HTML. You must also have the mailer file on the server to deal with it. It's called cgi scripting (Common Gateway Interface). The most commonly used CGI for mail is Perl (not php) although there are probably php versions out there. People tend to use Perl because it is so elegant in that regard.

If you want to do this you will need to do some online learning on "how to create html mail forms with cgi". You *can* find online tutorials on how to set this up. Depending on your host they might even have one and they will also tell you if your hosting includes access to their perl mailer file (it will usually be called mail.pl or mail.cgi. This is quite heavy stuff for a learner so just be warned.

If you just want your email address to show up, google for "html mailto link" and you just put that code into your template or into pageparts.php . The web browser does the rest, a player clicks it and their mail program opens automagically (and no we can't do it for you, it's a core edit).

I have intentionally spelled it out in a fair bit of detail and I will honestly tell you that I hope it scares you off. Not to be nasty, but it's not easy. It's a lot of learning for hardly any real benefit in LoGD. I suggest you get a free gmail email account, set it up to redirect to your normal email, and then just tell players to mail your gmail. They'll never see your real address that way.

Simplest solution: Turn on the setting in the Grotto to mail the admin when petitions are received. All players contact you with Petitions, and they all get mailed to you.
« Last Edit: June 12, 2007, 12:11:34 AM by SaucyWench » Logged

SaucyWench
Owner of GemDust.com and Darton City proudly hosted by LunarPages
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Version 1.1.2 is the current supported version and is available for download.

Support Us
$100 raised this year
Your help is greatly appreciated!
Who's Online
27 Guests, 1 User
Aeo
DragonPrime LoGD
Recent Topics
Home Forums News Links Downloads Login Register Advanced Search