PDA

View Full Version : Thanks Jeff One more Question


Will219
01-10-2008, 12:53 AM
I'm using DHTML to design site and tryed to use one of the Pre-Made Contact Us and Send Details forms which is in HTML. I tryed to cut and paste into Windows Notepad like you said in a previous thread but had no luck doing so. Any suggestions?

Thanks again,
Bill

jefito
01-11-2008, 08:48 PM
The trickiest part with forms is to make sure that the html works with WE code. I would view a WE page in its page source and study the code.

But, getting right to your question. You can either copy the code and paste it into a notepad doc, or you can paste code right into the custom script assistant. If you're altering a web easy form, it can be tricky. I would copy the code for each function, then paste it into a notepad doc, save it as, for example: test.html and then open it in your browser to see how it looks.


The second trickiest part about forms is who they're being forwarded to. I usually just write them myself, then send them to my php server, which in turns, re-routes it to me.

Here is some sample script I use in forms. I don't always write code like this, but it's a good start to roughly see how they're composed. A good place to get form info is at:

http://www.w3schools.com/

jefito
01-11-2008, 08:49 PM
sorry, but it won't let me paste in sample script.

CowboyCrew
01-12-2008, 12:04 AM
What exactly are you trying to do?

Russell

Will219
01-12-2008, 10:23 PM
Russell,

I'm using DHTML to design site but went to use one on the pre-made contact/send details forms that is in WebEasy. This form seems to be in HTML and it completely distorts text and graphics when I build/preview site. The banner and links on contact page is completely distorted. Any suggestions? I would like to do it the same way you did your Contact page on the Thomas Ranch Site. Do you have any problems receiving email with this form? How did you code it so it always comes to you w/no security blocks? Thanks for your help.

Thanks,
Bill email:will219@comcast.net

CowboyCrew
01-13-2008, 01:47 AM
This is an HTML Script that I am using to look more professional.

My Contact Us page at:
http://thethomasranch.com/thomas_ranch_010.htm

This is not a default email from within WebEasy.

This is a very professional way to recieve e-mail. This script does not open the default e-mail program they just type in it and then hit send and I receive my e-mails.

Now I have been having issues with my e-mail between mail.ieasysite.com and my forwarded e-mail address.

I have now stopped the forward all e-mails and started checking my ieasy mail. But I am still getting e-mail in my actual e-mail account. This has nothing to do with this script it has to do with the default program that Ieasy is using.

Once this email for is filled out you are advanced to a page that will put a confirmation page that will verify that the sender has sent an e-mail.

I have attatched the Script and you just change the yourname@yoursite.com.

I hope this helps.

Russell

Will219
01-13-2008, 03:06 PM
Thanks Russell for your help. I downloaded the file you gave me to my documents and made change for email address. I then tryed to drag & drop file to my contact page and nothing came up(only small box labeled HTML) even when I build/preview site. The file was in notepad should I do something with this first? Can you change the size of the fonts in the file?

Thanks,
Bill

supa
01-13-2008, 04:10 PM
Please check my : Captcha Form to Mail Guide (http://forums.avanquestusa.com/aq/showthread.php?t=5199)

oh and CowboyCrew we talked once about your site being viewed by Firefox... well i just noticed that on your contact page : http://thethomasranch.com/thomas_ranch_010.htm

When viewing with Firefox, the "Forum" picture (thomas_ranch010002.jpg)
conceals the Comment text box...

Supa

CowboyCrew
01-13-2008, 06:13 PM
Will,

First thing you do is insert a Text box inside the page that you want this to display on.

Next copy that code and place it within that box replacing the automatic text that was in there.

Build Page and you should get an email box like mine, minus the orange scroll bar. That is a different script.

Supa,
I haven't gotten around to downloading FireFox yet, I think I'm going to do that today..

Thanks :)

I hope that helps Will,
Russell

Will219
01-15-2008, 12:42 AM
Russell,

-I downloaded the file you gave me to my documents.
-I opened file with notepad and changed the email information-highlighted the entire thing and copyed it.
-I then input plain text block and pasted the file into text block.
-I then went to build-website and built it in DHTML mode.
-After this final step went to preview site and the contact page had nothing but all the information you had sent me. Not an actual form like your contact page.

What am I doing wrong?

Thanks again for all your help.
Bill

supa
01-15-2008, 02:30 AM
I believe CowboyCrew forgot to mention some very important information.

Will219...
I wrote down the solution to how to implement the code in the WebEasy
you can play with it for fun to reach some better understanding of the issue
but I really don't recommend using this contact form.
The Web easy contact form is very good as it also remind users to fill all the information.
and also by using this way to send mail, your email is open for all to see in your source page, which means a lot of Spam Bots will love to have look at your site and collect your Email address for future abuse.

This is why i highly recommend you to use the advanced secure Contact Form to Mail and i write all that needs to know in this guide :

http://forums.avanquestusa.com/aq/showthread.php?t=5199 (http://forums.avanquestusa.com/aq/showthread.php?t=5199)
It will protect your email from being seeing and will add a security code
to be insert by the user to verify it is a human.
It describes all the things need to be done in order to have a running contact form.

any way here is the solution to why you only see the text and not the code in
your contact page...

You made a mistake, you shouldnt put that information inside a text block.
Of course every thing you will put in a text block will always be seen as a pure text, this is the "text block" job, and it good at it ;) .

What you need to do is to insert a Box not a text box, but a box from the shapes toolbar. after you have a nice black (or other color) box you will need to change its script. (don't worry about how the box looks like,in the preview no one will know that once lied here an ugly box)

look at the properties inspector after pressing the box, find the Script setting box, press on it and enter the script CowboyCrew gave you.

This should be enough in order to see the form on your page.
but it sure ain't over !


in this line :

<form method="post" action="/_ihnextras/cgi/cgishell.exe?replytovendor">

you should make the changes according to where is your Submit.PHP file
or Mail.php file , or whatever you put on your hosting website.

you see after the user writes down his information and press SEND
this information is being sent to the submit.php file which needs to know how to deal with it and then send the information to you .

You don't have the above file, so it just won't work.
Which sends you back to the guide.

Supa

Will219
01-16-2008, 12:44 AM
Thanks Supa I'll give that a try and let you know how I made out. Thanks for your input.

Bill

CowboyCrew
01-16-2008, 01:16 AM
Will,
First thing click on the text box then right click on it and send it forward.

Build Preview. This should fix it.

If that doesn't you made your HTML box too small. Ensure that you stretch your box so all the lines are on there particular line.

Ie
Like this:
adddingtexttoalinewouldlooklikethis

Not like:
addingtext
toalinewoul
dlooklikethi
s

I hope that you understand what I am saying.

Those are the only two possible reasons it would not work.

I hope that this helps,
Russell

CowboyCrew
01-16-2008, 01:23 AM
Will you did say your host was IEasy correct?

This is a Script that will work for IEasy sites.

Also you do add this code in a text box. I am using WE6 and this is how I add all of my HTML and Script into my pages.

I do get spam, I don't know anyone who doesn't, but I have never seen where someone was able to look at my emails? I also am getting a ton less Spam by having the contact box like I have on one page instead of the words "E-mail Me" on each page with the directions to open the persons e-mail.

Supa is far advanced when it comes to the coding than I am but for a simple contact box that looks good and works I am using this one.

supa
01-16-2008, 10:36 AM
CowboyCrew...

It's better to make some changes to the contact page.
Because Spam Bots read the Html code when they enter a site.
and for example in your page :
http://thethomasranch.com/thomas_ranch_010.htm
when you look inside your source code you can read out your email
in several places. this is like honey for Spam Bots,
I know of some Webmasters claiming they had up to thousands of Spam a day..
and had to change their Email... it is agonizing...

So there are several solutions for this problem.

one is to use a code like that for the MailTo link: (I divided to 2 PHP codes because of forum coding restriction so remember to insert the < in the beginning of code)
<
script language="JavaScript"><!--
var name = "Test"; <!-- change to your needs-->
var domain1 = "Gmail"; <!-- change to your needs-->
var domain2 = "net" <!-- change to your needs-->
var part1 = "mai"; <!-- first part of mail to-->
var part2 = "lto:"; <!-- second part of mail to -->


document.write('<a href=\"'+ part1 + part2 + name + '@' + domain1 + "." + domain2 +'\">');
document.write(name + '@' + domain1 + "." + domain2 +'</a>');
// -->
</script>
<noscript>
Test ["at"] Gmail ["DOT"] net (Change "at" & "DOT") <!-- Just in case user don't allow java | change details to your needs-->
</noscript>

You can even make it more complex if you change several words or the "@" sign to uni-encoded .
Use This site (http://www.fantomaster.com/fantomasSuite/mailShield/famshieldsv-e.cgi) to change a letter or word or sign to uni-encoded and then insert it to the code above.

The above code is for Mailto links..

Now if someone have a contact form, he will sure have a line like this :

<input type="hidden" name="recipient" value="Test@Gmail.net">

this email will be harvested tooooo quick..

you can put this code for example:

(Again I divided to 2 PHP codes because of forum coding restriction so remember to insert the < in the beginning of code)

<

script language="JavaScript">
<!--
Textaddress ='.'+ 'net';//tld as last part of the email address
Textaddress =('Gmail' + Textaddress);//domain as second part of the email address
Textaddress=('Test'+ '@' + Textaddress);//user name as first part of the email address
document.write('<input type="hidden" name="recipient" value="' + Textaddress + '" />')

//-->

</script>


All these solution won't block 100% of spam but will sure stop a high percentage of them.



Supa

Will219
01-16-2008, 04:05 PM
Supa,

I did input box and changed script to the one CowboyCrew gave me. It did come up when I build/preview site. From this point where and what code should I use to receive email in the most secure way w/limited amount of spam? I am using Yahoo as a host. Should I come up with my own email link info@test.com or use one of the pre-made forms from webeasy?
Many hours have been spent trying to figure this out.

Thank you for your kindness.

Bill

Will219
01-16-2008, 04:42 PM
Supa,

When I input text in box. The Contact form doesn't come up in the same location as the box in the build/preview mode. Any suggestions?

Thanks,
Bill

supa
01-16-2008, 06:28 PM
Bill,

Although it is long, i would recommend you to just read my guide (http://forums.avanquestusa.com/aq/showthread.php?t=5199)
and make your contact form pretty much secure.
You should use the web easy pre-made contact form it is a very good start.
just make changes according to the guide.

Supa