FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


*solved*





Sparda
EDIT: I found why it did not work before. I typed something wrong. Nevermind.



Hi. I want to set up a mail system to send users account disires to my email so I can manually create the account on my game. I tried figuring this one out on my own, but ended up crewing it up.

Here is the Email.php. I want to change it so that the following are changed. There is not a subjust box. The subject sent to me will automaticlly "be account stuff". As for the message.. I dont want users to send me a whole message, I just want that to be their disired password for the game. So message textbox changing to password box with the stuff that keeps the password blocked while typing it. Just like in any password creating situation. As you can see a something in this code creates a button to submit the information. I don't want that button. I want that button to be an image instead and still submit the information as normally.

Code:
<div id="content1"><br>
<?php
echo "You can email us for anything to do with the guild. That includes questions, concerns, ect.";
function spamcheck($field)
  {
//eregi() performs a case insensitive regular expression match
  if(eregi("to:",$field) || eregi("cc:",$field))
    {
    return TRUE;
    }
  else
    {
    return FALSE;
    }
  }//if "email" is filled out, send email
if (isset($_REQUEST['email']))
  {
  //check if the email address is invalid
  $mailcheck = spamcheck($_REQUEST['email']);
  if ($mailcheck==TRUE)
    {
    echo "Invalid input";
    }
  else
    {
    //send email
    $email = $_REQUEST['email'] ;
    $subject = $_REQUEST['subject'] ;
    $message = $_REQUEST['message'] ;
    mail("sparda@spardaslayer.frih.net", "Subject: $subject",
    $message, "From: $email" );
    echo "Thank you for using our mail form";
    }
  }
else
//if "email" is not filled out, display the form
  {
  echo "<form method='post' action='mailform.php'>
  Your Email: <input name='email' type='text' /><br />
  Subject: <input name='subject' type='text' /><br />
  Message:<br />
  <textarea name='message' rows='15' cols='40'>
  </textarea><br />
  <input type='submit' />
  </form>";
  }
?></body>
</div>
refinedruffian
I didnt exactly get what your mean to say. But for the button :

Code:
<img src="path" onclick="document.form.submit();" >


This will work for you in place of submit button.
Related topics
Can one reset the site? (Solved)
A great website poll....
solved
[Solved] [Java] KeyListener Not Working In Internet Explorer
Untaring files in DirectAdmin [SOLVED]
New Domain -Solved-
Flash not working on Firefox
Math Problem. 30 frih. (Solved!)
Tabless layout - footer problems - [solved]
frihost serv2 and joomla = problem :( SOLVED
"Document not found" in iframe
PICASA LABELS/ALBUMS! [SOLVED]
[solved]show / hide table row. Something is wrong
Pro Tools Website
PHP + GD coder needed - Dynamic Sig Help {SOLVED}
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.