Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

   

Reply
 
LinkBack Thread Tools Display Modes
Old 12-17-2004, 08:57 PM   #1 (permalink)
Inactive
 
Join Date: 11-20-04
Posts: 27
iTrader: 0 / 0%
Latest Blog:
None

kakarotto is liked by many
HTML Contact Form help!

I have to make one soon or I am dead!

I got this:

Code:
<FORM METHOD="post" ACTION="WHATISTHIS??????"> <P><strong>Your Name:</strong><br> <INPUT type="text" NAME="sender_name" VALUE="sender_name" SIZE=30></p> <P><strong>Your Email:</strong><br> <INPUT type="text" NAME="sender_email" VALUE="sender_email" SIZE=30></p> <P><strong>Message:</strong><br> <TEXTAREA NAME="message" COLS=30 ROWS=5 WRAP=virtual></TEXTAREA></p> <INPUT type="hidden" name="opi" value="ds"> <P><INPUT TYPE="submit" NAME="submit" VALUE="Send"></p> </FORM>
I don't know what to do with the actions .
kakarotto is offline  
Add Post to del.icio.us
Reply With Quote
Old 12-17-2004, 09:21 PM   #2 (permalink)
Inactive
 
insitedev's Avatar
 
Join Date: 12-14-04
Posts: 108
iTrader: 0 / 0%
Latest Blog:
None

insitedev is liked by somebodyinsitedev is liked by somebodyinsitedev is liked by somebodyinsitedev is liked by somebody
I'm assuming you want the info that users enter into that form to be sent to an email address? If so and assuming you've got PHP working, make the action in the <form> tag:
PHP Code:
<?php echo $_SERVER['PHP_SELF']; ?>
and then put this code right above the <form> tag:
PHP Code:
<?php
if (count($_POST) > 0)
{
    
$email_msg "";
    foreach (
$_POST as $k => $v)
        
$email_msg .= "$k: $v\r\n";
    
    if (@
mail("the@receipient.com""The Email's Subject"$email_msg))
        echo 
"Mail sent.";
    else
        echo 
"There was a problem sending the email.";
}
?>
Then make sure the file that has all this in it has a .php extension. This is a very simple solution.

If you don't have PHP support, tell us what scripting languages you do have support for.
insitedev is offline  
Add Post to del.icio.us
Reply With Quote
Old 12-17-2004, 09:24 PM   #3 (permalink)
Inactive
 
Join Date: 11-20-04
Posts: 27
iTrader: 0 / 0%
Latest Blog:
None

kakarotto is liked by many
thanks
kakarotto is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-30-2006, 06:04 PM   #4 (permalink)
Inactive
 
Join Date: 03-30-06
Posts: 1
iTrader: 0 / 0%
Latest Blog:
None

Nick_Coffey is liked by many
PHP issues

Hello,

I am new to this forum but I want both a guestbook and a Comment Form/feedback for my site - my webhost doesn't support PHP, which stinks, it does support however - CGI,Perl,and SSI. I don't think there's any way around this but please let me know if there is.

Thanks.

I would also like it if you could paste the code on this forum.

PS. And I would also like it if the guestbook and comment form didn't link to another site to submit the comment or guestbook entry to me.
Thanks.
Nick_Coffey is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-30-2006, 06:18 PM   #5 (permalink)
v7n Mentor
 
DaveyBoy's Avatar
 
Join Date: 10-13-03
Location: England.
Posts: 6,183
iTrader: 0 / 0%
Latest Blog:
None

DaveyBoy is a web professional of the highest orderDaveyBoy is a web professional of the highest orderDaveyBoy is a web professional of the highest orderDaveyBoy is a web professional of the highest orderDaveyBoy is a web professional of the highest orderDaveyBoy is a web professional of the highest orderDaveyBoy is a web professional of the highest orderDaveyBoy is a web professional of the highest orderDaveyBoy is a web professional of the highest orderDaveyBoy is a web professional of the highest orderDaveyBoy is a web professional of the highest order
can someone suggest a very simple solution for ASP servers please?
DaveyBoy is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML contact form awg Coding Forum 14 07-30-2008 03:12 AM
Help me with a better contact form andreeam Coding Forum 4 11-18-2006 01:56 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 02:34 AM.
© Copyright 2008 V7 Inc