...

View Full Version : f o r m s



ab123
08-24-2005, 06:12 PM
How do i get a form that when people hit submit they are taken to a thankyou for submitting page.........

Also when they submit the form i dont want it to open up the login box for hotmail or yahoo...i want my form to come straight to me in my mail if its possible......

Ive tryed that cgi email, installed it and it didnt work for me lol....here what i had the form set out...:

<FORM ACTION="http://www.freehtmlab.com/cgi-bin/cgiemail" METHOD="POST">
Name: <input type="text" name="name" value="" size="15" maxlength="20">
<br><bR>
Email: <input type="text" name="email" value="" size="15" maxlength="20">
<br><br>
website URL: <input type="text" name="website url" value="" size="15" maxlength="50">
<br><br>
<input type="hidden" name="page" value="contact form">
Please select:
<select name="contact option">
<option value="contact option">Comment</option>
<option value="contact option">Feedback</option>
<option value="contact option">Suggestion</option>
<option value="contact option">Need help</option>
<option value="contact option">Other</option>
</select>
<br><br>
<textarea name="unique_name" rows="4" cols="30"></textarea>
<input type="submit" value="Submit">
<input type="reset" value="Reset">
</form>


now if someone could help me on sorting this that would be realy great and ill be very appreciated also i would recommend this forum for coding help......



I just want a form that does not open login box to login to hotmail i want my visiter to be taken to a page that says thankyou for contacting us....

oldcrazylegs
08-24-2005, 08:39 PM
There is no way to make your form go to a thank you page unless the script host that you got it from made a provision for that in the script. At Geocities.com their free HTML forms script uses next url for that. But I doubt this one does. The problem with Geocities or any other free email form is that half of the emails your visitors send you never arrive.

To get your email to arrive at a certain email address you have to set that up in your http://www.freehtmlab.com/ account.

Read thie FAQ page or email them. They know what their script is capable of more than anyone.

ab123
08-24-2005, 09:15 PM
My website is on a paid host................not on a free host...Ive seen loads of websites that have a form that does not open hotmail to send it........The form sends to somewere on the website....i dont want to use a mailto: when they click send, i want it to send it to my aburnzi@freehtmlab.com email box..

Do you know anywere i can get this script.plz :thumbsup:

antizip
08-24-2005, 10:09 PM
I went to the "action" page and received a help file of sorts ... it seems all you gotta do is add this hidden field.


<INPUT TYPE="hidden" NAME="success" VALUE="http://web.mit.edu/">


where VALUE would be the page you want it to go to.

mrruben5
08-24-2005, 10:17 PM
Please select:
<select name="contact option">
<option value="contact option">Comment</option>
<option value="contact option">Feedback</option>
<option value="contact option">Suggestion</option>
<option value="contact option">Need help</option>
<option value="contact option">Other</option>
</select>
You are really going to break your mind to find out why every contact option is contact option.

]|V|[agnus
08-24-2005, 10:32 PM
If you're on a paid host, odds are you've got access to something like PHP, with which it is decidedly simple to send a basic email from a form.

Kickin
08-24-2005, 10:33 PM
I think what you are looking for is a server side language. Lets say you want to use perl, change your form to:



<FORM ACTION="http://www.freehtmlab.com/cgi-bin/cgiemail.cgi" METHOD="POST">
Name: <input type="text" name="name" value="" size="15" maxlength="20">
<br><bR>
Email: <input type="text" name="email" value="" size="15" maxlength="20">
<br><br>
website URL: <input type="text" name="url" value="" size="15" maxlength="50">
<br><br>
<input type="hidden" name="page" value="contact form">
Please select:
<select name="contact option">
<option value="comment">Comment</option>
<option value="feedback">Feedback</option>
<option value="suggestion">Suggestion</option>
<option value="need help">Need help</option>
<option value="other">Other</option>
</select>
<br><br>
<textarea name="unique_name" rows="4" cols="30"></textarea>
<input type="submit" value="Submit">
<input type="reset" value="Reset">
</form>


You then need the cgiemail.cgi:


#!/usr/bin/perl
use CGI ':standard';
use CGI::Carp qw(fatalsToBrowser);
$name = param('name');
$email = param('email');
$url = param('url');
$mailprog = '/usr/sbin/sendmail';


open (MAIL, "|$mailprog -t") or dienice("Can't access $mailprog!\n");
print MAIL "To: aburnzi\@freehtmlab.com\n";
print MAIL "From: Your Website\n";
print MAIL "User- $name ($email)\n";
print MAIL "$url";
close (MAIL);

print "Content-type:text/html\n\n";
print "<HTML><HEAD>\n";
print "<TITLE>Your title</TITLE>\n";
print "</HEAD>\n";
print "<h2>Thank you.</h2>\n";
print "You may now close this window.\n";
print "</body></html>";
exit;

mrruben5
08-25-2005, 08:31 PM
Or if you have PHP, wich is IMO, a bit more easier to use:

http://www.mylittlehomepage.net/form_mail_script

Files uploadable.

beebee_kok
08-26-2005, 09:14 AM
i have the same problem with ab123 but the form action i use mailto: and it need to open the outlook express in my computer to submit the form.if i don't want it to open my outlook express and straight away submit the form to the email address that i want and after submitting the form,the visitor'll be taken to another page which is a thank you page.Can this be settle?please help cause i'm new to this.Thank you.Here is the simple coding that i create for the form.

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>Untitled Document</title>
</head>

<body>

<form name="frmCustomer" method="post" enctype="text/plain" action="mailto:beebee_kok@yahoo.com">
<p>Customer Name
<input name="txtCustomerName" type="text" id="txtCustomerName">
</p>
<p>Customer ID
<input name="txtCustomerID" type="text" id="txtCustomerID">
</p>
<p>Email
<input name="txtEmail" type="text" id="txtEmail">
</p>
<p>
<input type="submit" name="Submit" value="Submit">
</p>
</form>
</body>
</html>

p/s:please tell me in details in which line i should correct it.thanks.^-^

Kickin
08-26-2005, 09:55 AM
and it need to open the outlook express in my computer to submit the form.if i don't want it to open my outlook express and straight away submit the form to the email address

Do you want it to open a mail program on the viewer's computer (like Outlook) or not? Do you want to send the mail from the server? Are you trying to send it from both? I'm not understanding what it is you want to do.

beebee_kok
08-26-2005, 10:16 AM
when i submit the form,it appear the outlook express and send the form through the outlook express to the receipient email.if i don't wish the form to be sent through outlook express,can it be done?when i try on the other computer which have no outlook express,the form cannot be submitted.Is it means that if my computer doesn't have the outlook express then i can't submit the form?please advise what the solution for this problem.what is the coding to solve it.thanks a lot.^-^

beebee_kok
08-26-2005, 10:24 AM
i just want my form to be submitted to the reciepient email without using outlook express cause not everyone use the outlook express.so i just want the form to be submitted just by clicking the submit button.can it be done in the way like this?

ab123
08-26-2005, 12:51 PM
http://www.mylittlehomepage.net/form_mail_script

Try that it works but it dont send....if i use my hotmail it sends but not like it should like this...

name:

address:

option: etc etc when it sends it sends just the message not name and address..

but if you use your webmail addy like aburnzi@freehtmlab.com it dont work...

]|V|[agnus
08-26-2005, 03:26 PM
p/s:please tell me in details in which line i should correct it.thanks.^-^

Start with every line that uses <p></p> to provide a block-level wrapper, and replace those elements with something that actually makes sense in that context.

Personally, I like to simply make my <label />s block-level.

beebee_kok
08-27-2005, 03:23 AM
i have tried on the mylittlehomepage form mail script.it was written in the php coding which i totally have no idea on it.i just want a simple coding that can help me to solve the online form processing.can i know who can solve this problem for me?i need to solve this problem as soon as possible.thanks a lot.^-^



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum