Vote Then E-mail Results

I want to have a vote on a intranet site, a drop down list of peoples names and a text box for the voters name, then have an asp page e-mail me the result.

I found a forum to e-mail script but I'm still new so I can't figure out how to manipulate it to do what I want or work at all. What I would like is the code to put in my html page and the code for the asp page.

View Replies


ADVERTISEMENT

Problem Stripping Down Db Results For Cdonts Mail

i have a password reminder page that works, but i'm trying to strip down the username. it's in the database as domain/username, but i don't want the user to see the domain in the email they receive.

when i run the page i get a type mismatch error pointing to the line where i'm outputting the username in the email. i can get this to work when i'm outputting the data to a web page. is it because of cdonts? how would i strip off the data? Code:

View Replies View Related

Grab Top 3 Vote Questions

I have a voting system that works perfect. It calculates the % of votes and shows the total percentage that people picked 1st, 2nd, and 3rd, and a total.

However, I want to be able to select the top 3 of those, and highlight the row, using a bgColor variable that I have defined. The problem with this is that I am calculating the %'s as I am writing the rows, and do not know how to check to see if that row is one of the top 3.

Here is my code:

View Replies View Related

Form Processing Script: Results In HTML Mail Format?

I have purchased a form processing script, which basically saves the data into a database, emails certain people's email addresses with the form results, and also sends an email to the user that filled in the form with a thank you email.

However, all the emails are being sent in plain text format. I would like to change this to HTML so I can make the results look nicer and also make the thank you email look nicer.

I have emailed the script developers, but have yet had a response from them, so i thought id put a post on here!

I have found the part of the coding that sends the Thank You email out to the user once they have filled in the form:

'/// Send Autoresponse
if replyto<>"" and (autoresponse<>"" or sendcopy<>"") then
if sendcopy<>"" then autoresponse=autoresponse & vbcrlf & vbcrlf & message
call sendmail(replyto,mailadmin,formname,autoresponse)
end if
end if .......

View Replies View Related

Send A Mail With Cdosys And Save A Copy In The Sent Mail Folder: How To?

I need some help: with cdosys i'm able to send e-mail from asp using the local exchange
server. Now I also have to save the sent mail into the user's mailbox for future reference: how to?

I'm using:....

View Replies View Related

Mail Insertion Hack On Send Mail Form

I'm using CDO to send mail to the site owner from ASP pages with forms.
Recently one of my forms is occasionally sending email with what seems
to be an insertion which is replacing the plain text part of the email
with something else. Looking at the server sent email source, the
hacked emails have the following:

View Replies View Related

Sending Mail Using ASP/VBScript To Exchange Mail Box

Here's the scenario. I'm currently using cdosys/asp to send mail to
our SMTP server. We use a product called MailFilter to check for SPAM.
It doesn't work very well. If MailFilter isn't working cdosys also has
problems and emails don't get sent. As these email are confirmations
for customer's bookings this means lots of customers calling to see
where their confirmation emails have gone. The root of the problem is
MailFilter but that here to stay. So I had this thought of sending the
message to a queue of some sort so at least they will get to the
customer eventually rather than being lost for good. So here's the
question:

Can I/How do I send messages to a mailbox on our exchange server using
cdo.message?

View Replies View Related

Invalid Mail Address Gives Error In CDO Mail

I'm using CDO from my vb component to fire email. The problem is
whenever one of the email addresses in to, or cc is wrong then none of
the mails are fired even to the correct addresses. It gives an error
like

The server rejected one or more recipient addresses. The server
response was: 550 Relaying denied for <xfd@wre.com>

My code goes like this. Why is the mail server trying to look for the
validation of email ids??I want that atleast the mail should be fired
to the correct email addresses rather than no email fire. Can i
achieve that.

Dim iMsg As New CDO.Message
Dim iConf As New CDO.Configuration


With iConf
.Fields.Item(cdoSendUsingMethod) = cdoSendUsingPort
.Fields.Item(cdoSMTPConnectionTimeout) = 10 ' quick timeout
.Fields.Item(cdoSMTPAuthenticate) = cdoBasic
.Fields.Item(cdoSendUserName) = "username"
.Fields.Item(cdoSendPassword) = "password"
.Fields.Item(cdoURLProxyServer) = "server:80"
.Fields.Item(cdoURLProxyBypass) = "<local>"
.Fields.Item(cdoURLGetLatestVersion) = True
.Fields.Update
End With

Set iMsg.Configuration = iConf
With iMsg
.To = strToEmail
.From = strFromEmail
.CC = strCCEmail
.BCC = strBCCEmail
.Subject = strMailSubject
If strMailFormat = "TEXT" Then
.TextBody = strMailBody
Else
.HTMLBody = strMailBody
End If
If strAttachment <> "" Then
.AddAttachment strAttachment
End If
If intPriority = 2 Then
.Fields.Item("urn:schemas:mailheader:X-Priority") =
cdoHigh
.Fields.Update
End If

.Send
End With

View Replies View Related

Sending E-mail To Different Mail Box!

I would like to know if this can be achieved! On the form I a drop down menu that's called ("Escalation_type") the values are eta, hdtv, and supervisors. I have some ideas but I am not sure if it will work or not. If the use chooses an eta as a value I would like it to be sent a mailbox for exam: no@where.com. If they choose hdtv as value I would like it to be sent to a different mailbox. Can this be achieve by using the case statement or the if statement?

View Replies View Related

Asp Mail Without Using A Mail Component

I'm looking for an asp code who can send an email without using a mail component. I started to write somethings using winsock but I don't have enough time to finish it.

View Replies View Related

SQL 10 Last Results Only

Anybody know how to get only the 10 latest results of an SQL query ?(in SQL)

View Replies View Related

Stripping Results

i have a record that is returned by the database as domain/username. i want to be able to strip off "domain/" and just display "username". is this possible? if so, how would i go about doing this?

View Replies View Related

Trimming Db Results

i don't know what to do here exactly.
i have seen the TRIM function, but i'm not sure if it's the right way to do it.
i have a recordset called RSUSEREDIT.
in the recordset there is a column called "EMail".
i can print out the results using Code:

<%=RSUSEREDIT("Email")%>

the email column always uses the same domain name... - username@domain.com
is it possible to remove the part after and including the "@"?

View Replies View Related

Results Of URL To File

I have a URL... everything returned by the url, I need to write to a file. lets say its 40 lines of text... how can I write it to a text file and save it??

ADODB stream?
FSO?
DomObject?

View Replies View Related

Seperating Results

I'm creating a site that pulls details from a database & display it on screen. Problem is that there's sometimes loads of data which makes the page huge. What I want it to do is display ten and a next page link to display the next ten. Like the way Google displays results. Problem is I don't know how to generate pages on the fly. So the question is can it be done and does ne1 know how to do it?

View Replies View Related

Filtering Results

First, thanks to all who have helped me over the last few weeks !!
I have a form that allows the user to select multiple options.
These are user names:

Fred S
Bob D
Paul G
Dave O

When the form is submitted, I'm getting the details using

user = request.form("user")

this is returning the mutliple options.
What I would like to do is pass all the options to 'user' but at one
point on the results page only show the first user selected, not the
multiple selection

View Replies View Related

Ordering Results

what is an easy way to go about sorting my search results through links, you know, like clicking the link at the top of a column. i know how to pass the order by in a querystring:

http://www.example.com?lastname=smith&firstname=john&state=GA&orderlast=desc

where orderlast is the order querystring.

but what about all the other links? what do I do with the previous querystring entries like lastname, firstname, and state? i find if i add orderlast to my lastname column and i click on it, i will have 2 orderlast querystrings

View Replies View Related

Recordcount Results

I'm using multiple recordsets on a page, and they are all returning correct results and enough of them. My problem is when I try to access the recordcount property rs.recordcount, they all return a result of -1. This would usually mean that no records are returned. So why is showing my recordsets that are displaying records with recordcounts of -1. I can't seem to figure out.

View Replies View Related

Display Results

what I need is to dysplay only the first say 10 results and then have a link 'next' and dysplay 10 more in a new page

result
result
result
result
...
next

I can create a var and add 1 more for each result, till 10� end then create the link, but i don't now how to start the new page from the 11� result.

View Replies View Related

Using Bbc Code With Results

I know how to display results that contain html code on a page. (ie. <br>
<b>...)

what i would like to know, is if a result contains bbc code (ie.. [code]
[url]..) how would i display that to be readable?

This is not for a forum, but would be the same as if i was writting a forum.
I think there is a script that the page has to contain to be able to read it
correctly, but I can't find it.

View Replies View Related

ASP Different Results In Firefox And IE !

I have following code, picking an ID and saving it to Cookies.

<%
ItemID = Request("prod")
Response.Cookies("THREES")(ItemID) = Request("prod")
Set rdset=objConn.Execute("SELECT ID, Name, Large, Description
FROM shop_products WHERE ID=" & ItemID)
%>

In IE it works fine as it should, adding item id to Cookies

In Firefox it gives me the following error:

Cookies object, ASP 0102 (0x80004005)
The function expects a string as input.
/shop/addcart.asp, line 27

Any information on that. Any idea what is going wrong.

View Replies View Related

Return Results

My SQL statement won't return results where any field in a record is blank. What can I do to fix this?

strSQL = "SELECT * FROM newarchive WHERE Program_Title LIKE '%" & program & "%' AND Year_Aired LIKE '%" & yearA & "%' AND Sponsor LIKE '%" & sponsor & "%' AND Month_Aired LIKE '%" & monthA & "%' ORDER BY ID"

It gets its values from a form where some fields can be left blank. If the record itself does not have a blank field, the search will pick it up. But if the record contains a blank field, then it won't be selected unless it matches the Program_Title data.

View Replies View Related

Getting The Results From Executing An Exe

Is there any sample about getting the results from executing an exe using
asp?

View Replies View Related

Searching Results

I know how to use the LIKE command in a query but how do I do it in the
results of a recordset results="<b>Hello</b> World"

I want to search the above result and if it has a <B> in it, I want set
hasabold="Y"

I need to be able to search through a large amount of text so the BOLD marks
will not always be at the front of the results. They maybe be on line 50
character 59,

View Replies View Related

Fetch The Results

query = "SELECT table. * FROM table where table.lastname=" & lname

How can I fetch all the rows with the lastname field equals to lname variable?

View Replies View Related

Form Results

I have programmed several online forms(typically using cgi).A client of mine does not like how the results are formated (the long column of text)Is there anything I can do to program the results of this online form to get put into another format that would be e-mailed to the receipient?

View Replies View Related

Dump Results

i have a results page on a webpage and i was wondering if it was possible to dump these results (they are stored in a database)into a excel spread sheet?

View Replies View Related

Results In New Window

Currently I have results writing to the browser just fine (using frames).I would like to change it to where the results of a query are written to a new browser window.I have changed my asp code to be form.

method="post" target="_top".

View Replies View Related

Results Every Ten Fields

I have a database in Access and I want to dislpay all the lastnames of the database through an asp file. I have managed to do that. But I want to display every 10 fields.I mean to appear 10 last names.and then to press next button and appear the other 10 and etc. Any clues?

View Replies View Related

Radio BTN Results

I have a form email that was built in a .html doc that posts to a formsubmit.asp page. I have radio buttons in the form email-how do I get the results of the radio button selection to post in the email?

View Replies View Related

Tab Delimited Results

need to query a database and then get the results in a tab delimited file.currently am writing record by record in the file using the FSO,but just wanted to check can we directly get the results in the TAB delimited format and save to a file on the server.

View Replies View Related

Get Http Results

I want to pass theHTTP content from one a static file into another file and then serve it to the browser using ASP. Can anyone tell me how to do this?

View Replies View Related

Modifying Results

Using the following query I get my desired results. However, in the resulting recordset, how can I show for example 10 words before and 10 words after the keyword or phrase that was searched upon? If I get 20 resulting records I think it would be easier for the user to decide which they want to view.

DECLARE @SearchString varchar(100)
SET @SearchString = ' "stress" '
SELECT KEY_TBL.RANK, Title, Body
FROM Articles INNER JOIN
FREETEXTTABLE(Articles,*, @SearchString) AS KEY_TBL
ON Articles.ID = KEY_TBL.[KEY]
ORDER BY Rank DESC

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved