Jump to content



Welcome to KnowledgeSutra - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
- - - - -

Flash Site Needs Submit Button Destination


1 reply to this topic

#1 godwasadj

    Newbie

  • Kontributors
  • Pip
  • 1 posts

Posted 17 October 2010 - 11:15 AM

Hi Guy's and Girls,

I'm having some trouble with a stock flash site i downloaded to edit. Basically i'm trying to link up the SUBMIT button in the contact us page to my email and, being quite frank, i'm a noob. Any help would be greatly appreciated.


The current code just reads

<input name="Send" type="submit" value="SUBMIT" class="submit" id="send" size="16"/>


#2 web_designer

    "french rose sparkle under moonlight"...do you believe in the magic of moonlight??!!...

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPip
  • 1,385 posts
  • Gender:Female
  • Location:US, CA
  • Interests:internet and the web
    reading books
    sport
    watching tv series
    drawings and art
  • myCENT:12.10
  • Spam Patrol

Posted 23 October 2010 - 12:36 AM

hi godwasadj, welcome in knowledgesutra community i hope you will like your time in here.
and about the code you posted, it is not related to how you can connect your email to a form. to be more clear, you can't connect the code of submit button with your email, because it is only a way to tell the browser that you want to send the information in the form you filled now. but you can create a PHP file, name it (mail.php for example) that contains the code of your email, usually it will be like this:
<?php 
$to = "YOUR EMAIL SHOULD BE HERE"; 
$subject = "Contact Us"; 
$email = $_REQUEST['email'] ; 
$message = $_REQUEST['message'] ; 
$headers = "From: $email"; 
$sent = mail($to, $subject, $message, $headers) ; 
if($sent) {print "OK"; } else {print "We encountered an error"; 
} 
?> 

and your form should contains this code:

<form method="post" action="mail.php">
Name
<input type="text" name="name" /><br/>
E-mail
<input type="text" name="email" /><br/>
Message 
<textarea name="message" cols="50" rows="10" >
                
</textarea><br/>
                    
<input type="submit" value="send" /><br/>
                    
</form>
                

as you can see, the action attribute is what will connect your form with the PHP file that contains your email.

i hope that will helps you a little, good luck.




Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users