HTML code request

Live forum: http://forum.freeipodguide.com/viewtopic.php?t=33426

JordanE

19-02-2006 22:16:24

Hi i'm in need of a text field what i'm looking for is a box with a submit button that submits all entries to email==JordanEgeland@blinkpointofview.netJordanEgeland@blinkpointofview.net=JordanEgeland@blinkpointofview.netJordanEgeland@blinkpointofview.net/email

Who ever gets me the code first gets ++++karm

Thanks

-Jordan

fgr_admin

19-02-2006 22:34:28

[quote3775c09233="JordanE"]Hi i'm in need of a text field what i'm looking for is a box with a submit button that submits all entries to email==JordanEgeland@blinkpointofview.netJordanEgeland@blinkpointofview.net=JordanEgeland@blinkpointofview.netJordanEgeland@blinkpointofview.net/email

Who ever gets me the code first gets ++++karm

Thanks

-Jordan[/quote3775c09233]


here is a text box, will send to the supplied addy. Also will send them to a confirmation page after they hit submit. You have to change the addy to whatever your site is. If you dont want to send them elsewhere piss off. lol. Just let me know and will repost simple code.


<form method="POST" action="--WEBBOT-SELF--">
<!--webbot bot="SaveResults" U-File="_private/form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" B-Reverse-Chronology="FALSE" S-Email-Format="TEXT/PRE" S-Email-Address="JordanEgeland@blinkpointofview.net" B-Email-Label-Fields="TRUE" S-Builtin-Fields U-Confirmation-Url="http//www.addyoursitehere.com" -->
<p><textarea rows="11" name="S1" cols="30"></textarea><input type="submit" value="Submit" name="B3"><input type="reset" value="Reset" name="B4"></p>
</form>

just change the www.addyoursitehere.com to your web address you want as confirmation page. or can just send them where ever you want.

fgr_admin

19-02-2006 22:36:40

also to change the size of the text box just change the value of

[quote238d48a327]textarea rows="11" name="S1" cols="30[/quote238d48a327]

change the 11 and 30 to whatever fits your needs

RoBsTaMaCk

19-02-2006 22:39:53

[quote2c2f19ee7d="JordanE"]Hi i'm in need of a text field what i'm looking for is a box with a submit button that submits all entries to email==JordanEgeland@blinkpointofview.netJordanEgeland@blinkpointofview.net=JordanEgeland@blinkpointofview.netJordanEgeland@blinkpointofview.net/email

Who ever gets me the code first gets ++++karm

Thanks

-Jordan[/quote2c2f19ee7d]
Unless you have some kind of scripting on your site (ASP, PHP, ColdFusion, etc.) or FrontPage extensions, the person will be forced to submit their entry by sending you an email through their own account (which is NOT going to cut it). Specify what scripting language your web server is using and then you can get a specific response. Or, if your web server supports front page extensions look for a tutorial on google for submitting forms to email addresses via Front Page.

RoBsTaMaCk

19-02-2006 22:40:55

[quotee6aac539ff="fgr_admin"][quotee6aac539ff="JordanE"]Hi i'm in need of a text field what i'm looking for is a box with a submit button that submits all entries to email==JordanEgeland@blinkpointofview.netJordanEgeland@blinkpointofview.net=JordanEgeland@blinkpointofview.netJordanEgeland@blinkpointofview.net/email

Who ever gets me the code first gets ++++karm

Thanks

-Jordan[/quotee6aac539ff]


here is a text box, will send to the supplied addy. Also will send them to a confirmation page after they hit submit. You have to change the addy to whatever your site is. If you dont want to send them elsewhere piss off. lol. Just let me know and will repost simple code.


<form method="POST" action="--WEBBOT-SELF--">
<!--webbot bot="SaveResults" U-File="_private/form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" B-Reverse-Chronology="FALSE" S-Email-Format="TEXT/PRE" S-Email-Address="JordanEgeland@blinkpointofview.net" B-Email-Label-Fields="TRUE" S-Builtin-Fields U-Confirmation-Url="http//www.addyoursitehere.com" -->
<p><textarea rows="11" name="S1" cols="30"></textarea><input type="submit" value="Submit" name="B3"><input type="reset" value="Reset" name="B4"></p>
</form>

just change the www.addyoursitehere.com to your web address you want as confirmation page. or can just send them where ever you want.[/quotee6aac539ff]
Unless that is uploaded via Front Page AND the web server supports front page extensions, that will not work.

fgr_admin

19-02-2006 22:48:31

well he wasnt very specific in his needs. I gave him simple for simple request.

lol

JordanE

19-02-2006 22:57:22

lol okay i have dreamhost i found this http//formmail.dreamhost.com/ how exactly do i do this?

mpj31

19-02-2006 23:51:50

<form action=JordanEgeland@blinkpointofview.net method=post>
<textarea name="message"></textarea>
<input type=submit value="Send">
</form>

Would this work?

Psyc

20-02-2006 08:53:55

[quotec687ca6efd="mpj31"]<form action=JordanEgeland@blinkpointofview.net method=post>
<textarea name="message"></textarea>
<input type=submit value="Send">
</form>

Would this work?[/quotec687ca6efd]

nope.

I coded a simple php script...

contact.php
[code1c687ca6efd]
<?php include('header.php') ?>
<form action="send.php" mehod="post">
<table border="0">
<tr>
<td align="left"><b>Name:</b> </td>
<td align="left"><input type="text" name"name" size="45" class="contact_input"/></td>
</tr>

<tr>
<td align="left"><b>Email:</b> </td>
<td align="left"><input type="text" name="email" size="45" class="contact_input"></td>
</tr>

<tr>
<td align="left"><b>Subject:</b> </td>
<td align="left"><input type="text" name="subject" size="45" class="contact_input"></td>
</tr>

<tr>
<td align="left"><b>Message:</b> </td>
<td align="left"><textarea name="comments" cols="44" rows="10" class="contact_input"></textarea></td>
</tr>

<tr>
<td></td>
<td align="center"><input type="submit" value="Send" class="send"></td>
</tr>
</table>
</form>
<?php include('footer.php') ?>
[/code1c687ca6efd]

send.php
[code1c687ca6efd]
<?PHP
include('header.php')
$to = "email@gmail.com";
$from = 'From: ' . $email . "\n";
$from .= $name . "\n";
$msg = $comments;
mail($to, $subject, $msg, $from);
echo "Thank you for your email. We will try to return a reply as soon as possible.";
include('footer.php')
?>

[/code1c687ca6efd]

you can take out <?php include('header.php') ?> [/colorc687ca6efd], <?php include('footer.php') ?>[/colorc687ca6efd], include('header.php')[/colorc687ca6efd], and include('footer.php')[/colorc687ca6efd].

I have that there because it adds the header and footer to my site.
You can try out the form on my site http//complexthought.net/contact.php

pokernerdaa

20-02-2006 09:09:52

any idea when ur site will be done? looks like something that'll be awesome when complete

Psyc

20-02-2006 09:19:30

Not really, I have so much stuff going on. Teachers shelling out homework like crazy. Soccer. Essays, research projects, etc., etc.

I'll probably have time when summer vacation comes around.

JordanE

20-02-2006 20:23:57

Psyc gets the karm she was the first person to post a working code thanks.

JordanE

20-02-2006 21:07:48

In case anyone cares heres what i was useing it for http//www.blinkpointofview.net/advertise.htm i'm going to mess with it alittle bit more but thats basically what its for.

hehehhehe

20-02-2006 21:29:21

Make sure to test it so spammers can't exploit it to send email to whoever they want. Google email injection.

JordanE

21-02-2006 14:53:01

Okay i need alittle help with this. When they fill out all of the fields it olny emails me the subject and there email addess nothing eles. Heres the code i'm useing and heres where the forum is http//www.blinkpointofview.net/advertise.htm

[quoteef53529e28]
<html>
<form action="http//formmail.dreamhost.com/cgi-bin/formmail.cgi" method="POST">
<input type=hidden name="recipient" value="JordanEgeland@blinkpointofview.net">
<form><?php include('header.php') ?>
<form action="send.php" mehod="post">
<table border="0">
<tr>
<td align="left"><font face="Times New Roman size="3" color="FFFFFF"<b>Name</b> </td>
<td align="left"><input type="text" name"name" size="45" class="JordanEgeland@blinkpointofview.net"/></td>
</tr>

<tr>
<td align="left"><font face="Times New Roman" size="3" color="FFFFFF"<b>Email</b> </td>
<td align="left"><input type="text" name="email" size="45" class="JordanEgeland@blinkpointofview.net"></td>
</tr>

<tr>
<td align="left"><font face="Times New Roman" size"3"" color="FFFFFF"<b>Subject</b> </td> </font>
<td align="left"><input type="text" name="subject" size="45" class="JordanEgeland@blinkpointofview.net"></td>
</tr>
<tr>
<td align="left"><font face="Times New Roman" size"3"" color="FFFFFF"<b>Package Number</b> </td> </font>
<td align="left"><input type="text" name="subject" size="45" class="JordanEgeland@blinkpointofview.net"></td>
</tr>


<td align="left"><font face="Times New Roman" size"3"" color="FFFFFF"<b>Website URL</b> </td> </font>
<td align="left"><input type="text" name="subject" size="45" class="JordanEgeland@blinkpointofview.net"></td></tr>
<tr>
<td align="left"><font face="Times New Roman" size"3"" color="FFFFFF"<b>Your Ad URL</b> </font>
<td align="left"><input type="text" name="subject" size="45" class="JordanEgeland@blinkpointofview.net"></td>
</tr>


<tr>
<td align="left"><font face="Times New Roman" size"3"" color="FFFFFF"<b>Method Of Payment</b> </font>
<td align="left"><input type="text" name="subject" size="45" class="JordanEgeland@blinkpointofview.net"></td>
</tr>


<tr>
<td align="left"><font face="Times New Roman" size"3"" color="FFFFFF"</td>Opshinal Notes</font>
<td align="left"><input type="text" name="subject" size="45" class="JordanEgeland@blinkpointofview.net"></td>
</tr>




<tr>
<td align="left"><font face="Times New Roman" size"3"" color="FFFFFF"<b>Promo Code<br>(opshinal)</b> </td> </font>
<td align="left"><input type="text" name="subject" size="45" class="JordanEgeland@blinkpointofview.net"></td>
</tr>

<tr>
<td></td>
<td align="center"><input type="submit" value="Send Inquire" class="Send"></td>
</tr>
</table>
</form>
<?php include('footer.php') ?>
</form>

</html>
[/quoteef53529e28]

hehehhehe

21-02-2006 15:00:43

You can't just modify the original the form and expect that one script (send.php) to send everything without touching it. You have to modify it to take into account all the new fields you added. You used the "subject" variable multiple times.

There are sites online that will do all this for you automatically. Google it.