MDGM 22 Posting Whiz in Training

one more quick question, with CSS can i set a design for each cell in a table? for example, have a picture for the background for the top left cell for each new table i make? thanks,

Max

MDGM 22 Posting Whiz in Training

hi all,

My website host does not support changing perl file permissions online through an ftp program or any other method, and i need to change my .pl file to have different permissions in order for them to work. how do i change my file's permissions to chmod 755 or 666 LOCALLY? so without having to upload them first? I am useless at cgi (i got the script free from a website). Thanks!

Max

MDGM 22 Posting Whiz in Training

well almost but ill try to learn it and do it myself because i will be able to use it in the future more :) thanks for your help.

Max.

MDGM 22 Posting Whiz in Training

yes, I was mainly referring to the font tags, however; some people make it a habbit to lay a site out with tables when they should be using css.

oh well i dont really understand how to layout pages with css. I find tables are good because you can do things like make all text line up or have a pic as a border to a text box etc. Its also nice to use with templates on DWMX cos its very fast to edit.

Do you know of any good sites which can teach me to use css well?

thanks,
Max

MDGM 22 Posting Whiz in Training
<a href="<A class="backup" href="http://www.themepics.co.uk/gallery">

Ok cos there is a small glitch in the html i put class="backup" after the <a and before the href="... . I pasted the css into my style sheet i was using for the page, which already contains info about how my hyperlinks should be. this is what each of my things look like at the moment:

.stylesheet1 {
 font-family: arial;
 font-size: 12px;
 font-style: normal;
 line-height: normal;
 font-variant: normal;
 color: #000000;
 text-align: left;
}
a:link{
color: #990000;
text-decoration: none;
}
a:visited{
color: #AF1E2D;
text-decoration: none;
}
a:hover{
color: #808080;
text-decoration: underline;
a.backup:link{
color: #000000;
text-decoration: none;
}
a.backup:visited{
color: #333333;
text-decoration: none;
}
a.backup:hover{
color: #999999;
text-decoration: underline;
}

    <td height="20" class="stylesheet3" valign="bottom" body><div align="center" ><font face="Arial, Helvetica, sans-serif"><a class="backup" href="http://www.themepics.co.uk/" ><font size="-2">Home</font></a><font size="-2"> 
        | <a class="backup" href="<A href="http://www.themepics.co.uk/gallery">Gallery</a">http://www.themepics.co.uk/gallery">Gallery</a> | <a class="backup" href="<A href="http://www.themepics.co.uk/adobe%20photo%20gallery/adobe_gallery.htm">Adobe">http://www.themepics.co.uk/adobe%20photo%20gallery/adobe_gallery.htm">Adobe 
        Gallery</a> | <a class="backup" href="<A href="http://www.themepics.co.uk/art-packages">Art">http://www.themepics.co.uk/art-packages">Art Packages</a> 
        | <a class="backup" href="<A href="http://www.themepics.co.uk/customise">Customise</a">http://www.themepics.co.uk/customise">Customise</a> | <a class="backup" href="<A href="http://www.themepics.co.uk/buy">Buy</a">http://www.themepics.co.uk/buy">Buy</a> 
        | <a class="backup" href="<A href="http://www.themepics.co.uk/process">The">http://www.themepics.co.uk/process">The Process</a> | <a class="backup" href="<A href="http://www.themepics.co.uk/offers">Special">http://www.themepics.co.uk/offers">Special 
      Offers</a></font></font></div></td>

Thanks again.

MDGM 22 Posting Whiz in Training

hi all!!

This is my text only back-up menu at the bottom of my page, but the colours from my origional external css sheet look bad on its background, so how do i make them a different colour? Here is the code for the hyperlink:

<tr>
    <td>&nbsp;</td>
    <td height="20" class="stylesheet3" valign="bottom" body><div align="center" ><font face="Arial, Helvetica, sans-serif"><a href="[URL]http://www.themepics.co.uk/[/URL]" ><font size="-2">Home</font></a><font size="-2"> 
        | <a href="<A href="http://www.themepics.co.uk/gallery">Gallery</a">http://www.themepics.co.uk/gallery">Gallery</a> | <a href="<A href="http://www.themepics.co.uk/adobe%20photo%20gallery/adobe_gallery.htm">Adobe">http://www.themepics.co.uk/adobe%20photo%20gallery/adobe_gallery.htm">Adobe 
        Gallery</a> | <a href="<A href="http://www.themepics.co.uk/art-packages">Art">http://www.themepics.co.uk/art-packages">Art Packages</a> 
        | <a href="<A href="http://www.themepics.co.uk/customise">Customise</a">http://www.themepics.co.uk/customise">Customise</a> | <a href="<A href="http://www.themepics.co.uk/buy">Buy</a">http://www.themepics.co.uk/buy">Buy</a> 
        | <a href="<A href="http://www.themepics.co.uk/process">The">http://www.themepics.co.uk/process">The Process</a> | <a href="<A href="http://www.themepics.co.uk/offers">Special">http://www.themepics.co.uk/offers">Special 
      Offers</a></font></font></div></td>
    <td>&nbsp;</td>
  </tr>

Here is my css code that i have at the moment:

.stylesheet1 {
 font-family: arial;
 font-size: 12px;
 font-style: normal;
 line-height: normal;
 font-variant: normal;
 color: #000000;
 text-align: left;
}
a:link{
color: #990000;
text-decoration: none;
}
a:visited{
color: #AF1E2D;
text-decoration: none;
}
a:hover{
color: #808080;
text-decoration: underline;

and here is how i want the hyperlinks to look like:

a:link{
color: #000000;
text-decoration: none;
}
a:visited{
color: #333333;
text-decoration: none;
}
a:hover{
color: #999999;
text-decoration: underline;

Thanks!!!

MDGM 22 Posting Whiz in Training

I had exactly the same problem. I used JMAIL with mine. this resolved the problem. This is where i got an example code: http://www.webwizguide.info/asp/tutorials/email_using_jmail_tutorial.asp. If i were you, go ahead and download the sample forms from here: http://download.webwizguide.info/asp_tutorials/JMail_web_based_email_tutorial_v1.0.zip. they contain 4 email samples and is very good for making jmail forms. Its fairly easy to pick up. The script will need you to put in your smtp server. This is a link which contains a link of many smtp servers: http://www.more-solutions.co.uk/support/email-smtp.html.

So there u go :cheesy:

good luck. If u need any more info, give me a bell (just remember, im not pro myself, but i recently had the same problem :P)

MDGM 22 Posting Whiz in Training

Excellant thanks! :) im going out now but ill check it out when i get back :) thanks again. Max

MDGM 22 Posting Whiz in Training

to add a radio buttons in your page.. .. use input tahers an example

<input type="radio" name="status" value="on"> on
<br>
<input type="radio" name="status" value="off"> off

to retrieve it in asp, just that Request.QueryString(name)

im not completely sure how to use that im my jmail script. I am not very experianced in it, i have only been using it for 2 days lol.

MDGM 22 Posting Whiz in Training

I didn't understand what you mean by adding adding menu and radio group to JAMIL script....Do mean that you want to retrieve the option selected and show it in the message that is being sent ??

yes thats what i need to know. Its for a feedback form were you select which radio button you want. Thanks!!

Max

MDGM 22 Posting Whiz in Training

and i forgot to complete my post lol. Thats the info you wil probably need so can anybody tell me how to add a menu and radio group / button to my jmail script? Thanks,

Max

MDGM 22 Posting Whiz in Training

Hi all,

I want to make a jmail sendmail script for a form with radio buttons and menus. Below is an example form:

<form name="form1" method="post" action="survey-code.asp">
  <p>
    <input name="email" type="text" id="email">
  </p>
  <p>
    <select name="list1" id="list1">
      <option>a</option>
      <option>b</option>
      <option>c</option>
    </select>
  </p>
  <p> 
    <select name="list2" id="list2">
      <option>a</option>
      <option>b</option>
      <option>c</option>
    </select>
  </p>
  <p> 
    <select name="list3" id="list3">
      <option>a</option>
      <option>b</option>
      <option>c</option>
    </select>
  </p>
  <p>
    <input type="submit" name="Submit" value="Submit">
  </p>
</form>

below is the jmail script i am using for a more simple form:

<%
Response.Buffer = True
Dim strBody    'Holds the body of the e-mail
Dim objJMail    'Holds the mail server object
Dim strMyEmailAddress   'Holds your e-mail address
Dim strSMTPServerAddress 'Holds the SMTP Server address
Dim strCCEmailAddress  'Holds any carbon copy e-mail addresses if you want to send carbon copies of the e-mail
Dim strBCCEmailAddress  'Holds any blind copy e-mail addresses if you wish to send blind copies of the e-mail
Dim strReturnEmailAddress 'Holds the return e-mail address of the user
strMyEmailAddress = "[EMAIL="info@example.com"]info@example.com[/EMAIL]"
strSMTPServerAddress = "smtp.example.com"
strCCEmailAddress = "[EMAIL="infocc@example.com"]infocc@example.com[/EMAIL]" 'Use this string only if you want to send the carbon copies of the e-mail
strBCCEmailAddress = ""
strReturnEmailAddress = Request.Form("email")
strBody = "<h2>E-mail sent from form on Web Site</h2>"
strBody = strBody & "<br><b>Name: </b>" & Request.Form("Name")
strBody = strBody & "<br><b>E-mail: </b>" & strReturnEmailAddress
strBody = strBody & "<br><b>Question: </b>" & request.form("question")
If Len(strReturnEmailAddress) < 5 OR NOT Instr(1, strReturnEmailAddress, " ") = 0 OR InStr(1, strReturnEmailAddress, "@", 1) < 2 OR InStrRev(strReturnEmailAddress, ".") < InStr(1, strReturnEmailAddress, "@", …
MDGM 22 Posting Whiz in Training

only thing is, how do i make the form get the results for radio buttons and list menu things? here is an example code which includes a list and radio buttons:

<form name="form1" method="post" action="">
  <p> 
    <label> 
    <input type="radio" name="RadioGroup1" value="radio">
    Radio1</label>
    <br>
    <label> 
    <input type="radio" name="RadioGroup1" value="radio">
    Radio2</label>
    <br>
    <select name="select">
      <option>a</option>
      <option>b</option>
      <option>c</option>
      <option>d</option>
      <option>e</option>
      <option>f</option>
    </select>
  </p>
  <p>
    <input type="submit" name="Submit" value="Submit">
  </p>
  </form>

here is some of the code i am using at the moment:

Response.Buffer = True
Dim strBody    'Holds the body of the e-mail
Dim objJMail    'Holds the mail server object
Dim strMyEmailAddress   'Holds your e-mail address
Dim strSMTPServerAddress 'Holds the SMTP Server address
Dim strCCEmailAddress  'Holds any carbon copy e-mail addresses if you want to send carbon copies of the e-mail
Dim strBCCEmailAddress  'Holds any blind copy e-mail addresses if you wish to send blind copies of the e-mail
Dim strReturnEmailAddress 'Holds the return e-mail address of the user
strMyEmailAddress = "example@example.com"
strSMTPServerAddress = "smtp.example.com"
strCCEmailAddress = "" 'Use this string only if you want to send the carbon copies of the e-mail
strBCCEmailAddress = ""
strReturnEmailAddress = Request.Form("email")
strBody = "<h2>E-mail sent from form on Web Site</h2>"
(Request.Form("list1")) > "a" Then
 strBody = strBody & "<br>  " & Request.Form("country")
If Len(strReturnEmailAddress) < 5 OR NOT Instr(1, strReturnEmailAddress, " ") = 0 OR InStr(1, strReturnEmailAddress, "@", 1) < 2 OR InStrRev(strReturnEmailAddress, ".") < InStr(1, strReturnEmailAddress, "@", 1) Then
 strReturnEmailAddress = strMyEmailAddress
End If 
 & "list2" & "list3"
Set objJMail = …
MDGM 22 Posting Whiz in Training

FINALLY!! a code which works!! below is a copy of some code which i got from that jmail website you gave me the link to which i edited a bit to work on one of my forms. How would i make a form like this one but with only name and 5 radio button options send with the same options?

<%
Response.Buffer = True
'Dimension variables
Dim strBody 'Holds the body of the e-mail
Dim objJMail 'Holds the mail server object
Dim strMyEmailAddress 'Holds your e-mail address
Dim strSMTPServerAddress 'Holds the SMTP Server address
Dim strCCEmailAddress 'Holds any carbon copy e-mail addresses if you want to send carbon copies of the e-mail
Dim strBCCEmailAddress 'Holds any blind copy e-mail addresses if you wish to send blind copies of the e-mail
Dim strReturnEmailAddress 'Holds the return e-mail address of the user


strMyEmailAddress = "example@example.co.uk"
strSMTPServerAddress = "smtp.ntlworld.com"
strCCEmailAddress = "example@example.com" 
strBCCEmailAddress = "" 

strReturnEmailAddress = Request.Form("email")


strBody = "<h2>E-mail sent from form on Web Site</h2>"
strBody = strBody & "<br><b>Name: </b>" & Request.Form("Name")
strBody = strBody & "<br><b>E-mail: </b>" & strReturnEmailAddress
strBody = strBody & "<br><b>Question: </b>" & request.form("question")
If Len(strReturnEmailAddress) < 5 OR NOT Instr(1, strReturnEmailAddress, " ") = 0 OR InStr(1, strReturnEmailAddress, "@", 1) < 2 OR InStrRev(strReturnEmailAddress, ".") < InStr(1, strReturnEmailAddress, "@", 1) Then
strReturnEmailAddress = strMyEmailAddress
End If 
Set objJMail = Server.CreateObject("JMail.SMTPMail")
objJMail.ServerAddress = strSMTPServerAddress
objJMail.Sender = strReturnEmailAddress
objJMail.SenderName = Request.Form("Name")
objJMail.AddRecipient strMyEmailAddress
objJMail.AddRecipientCC strCCEmailAddress
objJMail.AddRecipientBCC strBCCEmailAddress
objJMail.Subject = "Enquiry sent from enquiry form on website" …
MDGM 22 Posting Whiz in Training

FINALLY!! a code which works!! below is a copy of some code which i got from that jmail website you gave me the link to which i edited a bit to work on one of my forms. How would i make a form like this one but with only name and 5 radio button options send with the same options?

<%
Response.Buffer = True
'Dimension variables
Dim strBody 'Holds the body of the e-mail
Dim objJMail 'Holds the mail server object
Dim strMyEmailAddress 'Holds your e-mail address
Dim strSMTPServerAddress 'Holds the SMTP Server address
Dim strCCEmailAddress 'Holds any carbon copy e-mail addresses if you want to send carbon copies of the e-mail
Dim strBCCEmailAddress 'Holds any blind copy e-mail addresses if you wish to send blind copies of the e-mail
Dim strReturnEmailAddress 'Holds the return e-mail address of the user



strMyEmailAddress = "example@example.co.uk"
strSMTPServerAddress = "smtp.example.com"
strCCEmailAddress = "example@example.com"
strBCCEmailAddress = ""


strReturnEmailAddress = Request.Form("email")



strBody = "<h2>E-mail sent from form on Web Site</h2>"
strBody = strBody & "<br><b>Name: </b>" & Request.Form("Name")
strBody = strBody & "<br><b>E-mail: </b>" & strReturnEmailAddress
strBody = strBody & "<br><b>Question: </b>" & request.form("question")
If Len(strReturnEmailAddress) < 5 OR NOT Instr(1, strReturnEmailAddress, " ") = 0 OR InStr(1, strReturnEmailAddress, "@", 1) < 2 OR InStrRev(strReturnEmailAddress, ".") < InStr(1, strReturnEmailAddress, "@", 1) Then
strReturnEmailAddress = strMyEmailAddress
End If
Set objJMail = Server.CreateObject("JMail.SMTPMail")
objJMail.ServerAddress = strSMTPServerAddress
objJMail.Sender = strReturnEmailAddress
objJMail.SenderName = Request.Form("Name")
objJMail.AddRecipient strMyEmailAddress
objJMail.AddRecipientCC strCCEmailAddress
objJMail.AddRecipientBCC strBCCEmailAddress
objJMail.Subject = "Enquiry sent from enquiry form on website" …
MDGM 22 Posting Whiz in Training

I LOVE YOU!!!!!!!!!! lol THANKS SOSOSOSO much for all your help, the JMAIL one worked!! THANKS!! OH MY GOODNESS thats such a releif lol i have several forms on my website which are not working because i cannot get the forms right but now thay can!! THANK YOU!!!!!!!!

MDGM 22 Posting Whiz in Training

thanks! ill take a look at them now.

Max

MDGM 22 Posting Whiz in Training

are you talking about ASP. I didn't understand what your last post was about....or what does it mean.

its a question and answer from my website host's knoledge or FAQ base. It basically says (i think) that CDONTS and JMAIL are the only type of sendmail script that works. Do you know these scripts? i have had no experience with them.

Max

MDGM 22 Posting Whiz in Training

pps: This might help:


Knowledge Base[IMG]http://xtreme.fasthosts.co.uk/images/corner2.gif[/IMG] PROBLEM: My sendmail script doesn't work under Windows

This article applies to:

  • All Accounts

Summary
The sendmail script can only be used on Linux servers. It does not work on Windows servers. For Windows servers you should use Jmail or CDONTS.
© 2006 All images and content are the property of Fasthosts Internet Limited
.... stupid fasthosts :( iv had no trouble until this lol)

MDGM 22 Posting Whiz in Training

try the following steps, since i dont know which files have you made for this forms..
1. make a html page which contains only HTML code, i mean only form, no asp. Set action to formaction.asp or formtest whatever
2. In the action page i.e. ASP write the code I had given to you. See if it works.

if still doesn't works i would try myself on the web.

I have done all that and saved it as a file called form.htm with the code in formcode.asp

(http://www.themepics.co.uk/formcode.asp)
(http://www.themepics.co.uk/form.htm)

But when i click submit for the form it shows my error page. Is this becaquse dreamweaver has not uploaded it correctly or there is an error with my host fasthosts? (http://www.fasthosts.com)

ps THANKS so much for all the help!!

Max

MDGM 22 Posting Whiz in Training

Thanks for the code but its not working on my site :( i know asp works because i have some code which replies on the next page with what the user put in (here: [URL]http://www.themepics.co.uk/convoform1.asp[/URL]) which is all working ok but the form script isnt working for my feedback form :/ what information do you need to determine why it isnt working? this is the code im using at the moment:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>form test</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form name="form1" method="post" action="formtest.asp">
  <input name="name" type="text" id="name" value="name..">
  <p> 
    <input name="email" type="text" id="email" value="email address..">
  </p>
  <p> 
    <textarea name="question" cols="50" rows="4">question..</textarea>
  </p>
  <p align="center"> 
    <input type="submit" name="Submit" value="Submit">
</form>
<%
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Question"
myMail.From=Request.QueryString("email")
myMail.To="example@example.com"
myMail.TextBody=Request.QueryString("question")
myMail.Send
%>
</body>
</html>

Thanks,
Max

ps also another wierd thing, when i go on my formtest.asp page with the feedback code in it, it displays the form and the asp code above my error page ([URL]http://www.themepics.co.uk/error.htm[/URL] and [URL]http://www.themepics.co.uk/formtest.asp[/URL])

MDGM 22 Posting Whiz in Training

what do you want to do with this with this form, first clarify that. u want a faq or work with database or whatever. . .

just somthing which emails the results to me. Its basically for common questions and if sombody needs any information then they can just put their question into the question section and the form will email me the results to all the form (hopfully :P)

Thanks,
Max Mumford.

MDGM 22 Posting Whiz in Training

After hours of looking on the internet and posting in forums and trying 10 different codes for php script, i start looking in my website providers' help database, and in there (and only in there) do they say that they do not support php form action scripts!?!?! Grr!

Can sombody help me get an easy asp form script? Below is the form and the fields:

<input name="name" type="text" id="name" value="name..">
          </p>
          <p> 
            <input name="email" type="text" id="email" value="email address..">
          </p>
          <p> 
            <textarea name="question" cols="50" rows="4">question..</textarea>
          </p>
          <p align="center">
            <input type="submit" name="Submit" value="Submit">

Thanks guys!!

Max

MDGM 22 Posting Whiz in Training

.

ok ill give you an invite. Whats your email address? mines maxmumford@gmail.com so just send me the keys etc for the linspire thing from your email and ill send that email addres the invite. Thanks,
Max Mumford.

MDGM 22 Posting Whiz in Training

soz ignore this lol

MDGM 22 Posting Whiz in Training

Hi all.
At the moment i am in the middle of a move between awful frontpage and magnificent dreamweaver mx. However, one good thing about frontpage is their easy peasy form maker. I dont know how to make a form on dreamweaver which emails to my website's email address without bringing up a scary message telling the customer that their email address will be viewable to the website owner, and then upon clicking ok, taken to outlook or whatever your default mailer is. How do I make a form in dreamweaver which works like a normal, trustworthy form that emails me the results? I dont mind using php or asp if i have to, but i have no experiance in these. However, in quite good with html so that would be my prefered format. My website: http://www.ThemePics.co.uk. Thanks!
Max :cheesy: