Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Old 02-19-2004, 05:45 PM Using feedback forms
wicko3's Avatar
The Wickmeister

Posts: 368
Location: Derby, UK
Trades: 0
Hi

I have been designing web sites with Frontpage for many years now. I still don't know how to do feedback forms.

Basically I want a 'contact me' form on my web site, and the information to be emailed to me. Current I have a form like this
Code:
<form name="emailform" method="post"
action="mailto:norah@tacklingfibro.co.uk"
enctype="text/plain">
. This is nearly perfect, except I get a few warning messages pop up when the visitor clicks submit, such as 'Are you sure you wish to reveal your email address to the recipient, etc.' I don't want these error messages.

So, how do I go about making a better feedback form. Do I need cgi or perl or javascript? I only have pretty basic web hosting, so I hope its not something too complicated.

Could someone please point me in the right direction.

Thanxalot,

Wicko

Last edited by wicko3; 02-20-2004 at 03:43 AM..
wicko3 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-19-2004, 05:48 PM
Novice Talker

Posts: 10
Location: Ontario
Trades: 0
You can do it quite easily using javascript and cgi. Optionally you can do it with php, but it depends on your hosting. I usually use php for mine.

Any particular reason you are using frontpage? That is one program that is the devils work.. lol..
__________________

Please login or register to view this content. Registration is FREE

Emancipator is offline
Reply With Quote
View Public Profile
 
Old 02-20-2004, 03:42 AM
wicko3's Avatar
The Wickmeister

Posts: 368
Location: Derby, UK
Trades: 0
Frontpage - erm, well, I already have it, and it makes making websites easier.

Don't you think so?

How would you suggest I go about making a feedback form using cgi or javascript?
wicko3 is offline
Reply With Quote
View Public Profile
 
Old 02-20-2004, 11:48 AM
Average Talker

Posts: 17
Trades: 0
With all due respect I'd move to Dreamweaver. FP is - ahem - not exactly for grown ups.
__________________
Find your old flames here:
Please login or register to view this content. Registration is FREE
sjjs is offline
Reply With Quote
View Public Profile
 
Old 02-20-2004, 12:04 PM
Sonic's Avatar
Skilled Talker

Posts: 64
Trades: 0
Here's a little php script just put this in your page
PHP Code:
<?php
include ("contact.php");
?>
contact.php will be the name of this page

PHP Code:

<?php 

    $empty_fields_message 
and $thankyou_message can be changed 
    
if you wish

 
$your_email "info@mydomain.com"

$subject "Message from me @ mydomain.com"

// This is displayed if all the fields are not filled in 
$empty_fields_message "<p>Please go back and complete all the fields in the form.</p>"

// This is displayed when the email has been sent 
$thankyou_message "<p>Thankyou for taking the time to contact me @ mydomain.comp>"

// You do not need to edit below this line 

$name stripslashes($_REQUEST['txtName']); 
$email stripslashes($_REQUEST['txtEmail']); 
$message stripslashes($_REQUEST['txtMessage']); 

if (!isset(
$_REQUEST['txtName'])) { 

?> 

<form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>"> 

    <p><label for="txtName">Name:</label><br /> 
    <input type="text" title="Enter your name" name="txtName" /></p> 

    <p><label for="txtEmail">Email:</label><br /> 
    <input type="text" title="Enter your email address" name="txtEmail" /></p> 

    <p><label for="txtMessage">Your message:</label><br /> 
    <textarea name="txtMessage" cols="70" rows="10" title="Enter your message"></textarea>
  </p> 

    
  <p>
    <label title="Send your message"> 
    <input type="submit" value="Send" />
    </label>
  </p>

</form> 

<?php 



elseif (empty(
$name) || empty($email) || empty($message)) { 

    echo 
$empty_fields_message



else { 

    
mail($your_email$subject$message"From: $name <$email>"); 

    echo 
$thankyou_message



?>
__________________

Please login or register to view this content. Registration is FREE
Sonic is offline
Reply With Quote
View Public Profile Visit Sonic's homepage!
 
Old 02-20-2004, 12:39 PM
wicko3's Avatar
The Wickmeister

Posts: 368
Location: Derby, UK
Trades: 0
Quote:
Originally posted by sjjs
With all due respect I'd move to Dreamweaver. FP is - ahem - not exactly for grown ups.
I've heard some bad reviews of Frontpage, but I've never really understood why it's a bad program. Could you please explain WHY frontpage is 'not exactly for grown ups'? Much appreciated.
wicko3 is offline
Reply With Quote
View Public Profile
 
Old 02-20-2004, 12:58 PM
wicko3's Avatar
The Wickmeister

Posts: 368
Location: Derby, UK
Trades: 0
Sonic - Thankyou very much for that PHP script. I really appreciate that.


Regards,
Wicko
wicko3 is offline
Reply With Quote
View Public Profile
 
Old 02-20-2004, 01:45 PM
Novice Talker

Posts: 10
Location: Ontario
Trades: 0
Wicko frontpage is notorious for bad code. Frontpage is like profanity to coders. For basic html, where you never really care about bugs, sloppy code, and are not going to be doing much with the page frontpage is fine. But for advanced sites dont even bother..
__________________

Please login or register to view this content. Registration is FREE

Emancipator is offline
Reply With Quote
View Public Profile
 
Old 02-21-2004, 10:19 AM
wicko3's Avatar
The Wickmeister

Posts: 368
Location: Derby, UK
Trades: 0
ok. I wonder why its so bad - you'd think that Micro$oft should be able to put together a decent html program?
wicko3 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Using feedback forms
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.48283 seconds with 12 queries