Merging Upload Form And Email Form
Im having problems with my form, separately both forms work perfectly, but having problem sending the email once submitted, however the upload fuction is working fine. The message im getting is,
Request object error 'ASP 0207 : 80004005'
Cannot use Request.Form
/forminfo.asp, line 42
Cannot use Request.Form collection after calling BinaryRead.
Heres the script Code:
View Replies
ADVERTISEMENT
I'm trying to get a file attached to an email from a form.
The form is a simple name, email, attach cv. When the user hits submit it gets sent to the company. I simply used the <input type="file"> for the user to browse.
View Replies
View Related
I´m having a problem using ASP Upload with an insert form..
If I use ENCTYPE="multipart/form-data" the all the parametres i might get with request.form don´t appear.. but i can upload the files.. Besides if I take away the ENCTYPE tag, i can´t upload but the INSERT INTO form works propertly
View Replies
View Related
Would anyone be able to give some guideance in ASP code as to how I would repeat a section of input fields in a form based upon the number of guests that are attending an event?
Basically, what needs to happen is if 3 guests are attending, I need the Name, address, city, state fields to repeat so they can be filled in with information.
Then all of the information from the whole form is submitted which returns an email to the administrator of the event.
View Replies
View Related
<%@Language=VBScript %>
<%option explicit%>
<%
MESSAGE = (Request.Form("type"))
MESSAGE=MESSAGE & vbcrlf & "Name" & (Request.Form("name"))
MESSAGE=MESSAGE & vbcrlf & (Request.Form("address"))
MESSAGE=MESSAGE & vbcrlf & (Request.Form("handphone"))
MESSAGE=MESSAGE & vbcrlf & (Request.Form("phonenumber"))
MESSAGE=MESSAGE & vbcrlf & vbcrlf & (Request.Form("comments"))
MESSAGE=MESSAGE & vbcrlf & vbcrlf
MESSAGE=MESSAGE & "____________________________________________"
Set objMail = Server.CreateObject("CDONTS.NewMail")
objMail.From =Request.Form(email)
objMail.To = "icepricessa@hotmail.com"
objMail.Subject = "Business/Career Enquiries"
objMail.Body = ""&MESSAGE&""
objMail.Send
Set objMail = Nothing
%>
but somehow i'm not able to send the mail....
View Replies
View Related
I have a problem with uploading two images in one submission. Has anyonen got any code that would let me do this?
View Replies
View Related
I am building a new site for the Television Station at Western Carolina University. The need a feature where visitors can submit requests for announcments in the final form of PowerPoint slides. So...
I built the form but due to server restrictions by the School it must be a component-less upload. Not a problem I found a very good high quality one.
The problem I am having is that I do not want to integrate the component-less upload into my main form just because of confusion for future webmasters and so forth. So...
I want a pop-up box that will basically be the one file that executes the upload and saves the uploaded PowerPoint files.
Now I have to reference the uploaded file back to the main form so that when that form is saved it also contains a link to the file they uploaded. If you need I can provide an example from a webmail site that uses what i want.
View Replies
View Related
I am having a problem formatting an email message which comes from a form.
I am currently having difficulty with the <br> tag which I am using for line spaces within my email. I am getting an expected statement error message which is pointing to the line which is underlined below. I can't think what is causing this.
The code for my processing page is below:-
View Replies
View Related
I have a form that passes variables to an asp file and then uploads a file. For some reason the request.form is not getting the info from the form. It's returning blanks. Code:
View Replies
View Related
Currently I have a simple form where users input and update their data. This works fine.
However, we now have a need for users to be able to upload a picture to their profile. I have managed to successfully do this, however, once the picture is uploaded I need it to be automatically resized and renamed in the format "username.jpg". Then I need the path of the picture to be stored in the database with their record so that when it is opened the picture can be shown also....
View Replies
View Related
I currently have an ASP form on a web site I maintain. This form allows visitors to submit an ad with a picture attached. I am seeking a way that checks the file size prior to uploading to the server. Currently if a file larger than 1mb is uploaded there is a timing problem and a html error page comes up instead of our created error page. I would like the error page to appear before the file even starts to upload.
View Replies
View Related
I am trying to create an upload form field in asp. Below is my code. When I try and access the form I get the following error. Does any one know whats wrong with my code
the error I get is
Microsoft VBScript runtime error '800a0009'
Subscript out of range: '[number: 0]'
/cwm/admin/reportrequest.asp, line 105
Code:
View Replies
View Related
I need to create a upload image form,but this will need check image size, width and height, and don't use any extra COM. Is it possible?
View Replies
View Related
Originally Posted by <%=RS("Tony")%> did you try it? and did it work . Works like a charm for me! Any ideas for uploading images and resizing them?
View Replies
View Related
I am in desperate need of an ASP File Upload Form that will allow my users to upload files from their computers to a folder called "uploaded" on my server. I have been everywhere and have tried just about everything to get something working with no success so far. I need to use the form within my user system and need to incorporate the folling code at the top of the page:
<%
If Session("MM_Username") = "" Then
Response.Redirect("login.asp")
End If
%> ....
View Replies
View Related
Just starting to play with scripts, and need a little guidance. I want to check to make sure that the email addresses users enter in a form are identical before it will allow them to submit. here's what i have:
the variable for the second email address is EmailFrom2
'validation
Dim validationOK
validationOK=true
If (Trim(EmailFrom)="") Then validationOK=false
If (validationOK=false) Then Response.Redirect("emailerror.htm?" & EmailFrom)
If (Trim(Name)="") Then validationOK=false
If (validationOK=false) Then Response.Redirect("nameerror.htm?")
If (Trim(CityState)="") Then validationOK=false
If (validationOK=false) Then Response.Redirect("citystateerror.htm?")
If (Trim(SchoolName)="") Then validationOK=false
If (validationOK=false) Then Response.Redirect("schoolnameerror.htm?")
View Replies
View Related
here is the script i use:
Set myMail=server.CreateObject("CDO.Message")
myMail.Subject="subject"
myMail.From="me"
myMail.To=request.form("email")
myMail.TextBody="hello"
myMail.Send
set myMail=nothing
this script sends emails to some addresses but not others--and its based on the email service it's sending to. for instance, hotmail email addresses get the email, but mail.com email addresses dont get the email. i have tried sending it to other email hosts, too, and still, some work, some don't. what is going on here?
View Replies
View Related
I am wondering if it is possible to make an area on a cusomt form were a user can upload a document and be able to email the form along with the document as an attachment. I alreay have the form developmed and it emails to the appropriate people, but now they want to be able to upload a document and receive it as an attachment in their email.
Does anyone know how to do this?
View Replies
View Related
I need users to upload and delete pictures on the server from a form. I've done this in PHP before, but in ASP it looks like a different world. I need to do it simply with ASP, and cannot be installing components from the web.
Is the following in the right direction?
Code: ....
View Replies
View Related
I am having problems trying to make a form submit information back to itself. The form works fine when I am not using the enctype"multipart/form-data" tag that is used to upload files with the <input type="file"> form component. However I need to upload a file using this form and also pass information back to the ASP page aswell.
<%
txt = request.FORM("COMMENT")
response.write("txt="&txt)
%>
<form name="frm1" id="frm1" action="mytest2.asp" method="POST" enctype="multipart/form-data">
<strong>Select file #1:</strong><br>
<input type="file" size="40" name="FILE1" id="FILE1"><p>
<strong>Comments:</strong><br>
<input type="text" size="40" name="COMMENT" id="COMMENT"><p>
<input type="submit" value="Upload!">
</form>
View Replies
View Related
I am trying to create a upload file form in asp.here is what I have so far
Code:
<form enctype="multipart/form-data" name="Form1" action="<%=basepath%>Admin/reportrequest.asp" method="Post" onSubmit="return submitwindow(Form1)">
and then I have the following
<TD>
Upload the templated :
</TD>
do I need to do two separte forms,because when I include enctype="multipart/form-data" in my form then my submit part stops working meaning it will not add data in my sql table when I hit submit.
View Replies
View Related
I did an contact form page using asp, when we press the submit button the information r going to a mail id. i want to add an file upload to that page . i can use that , when i used it , the file is going to that mail id but i cannot download that file. can u tell me how can i do that?
View Replies
View Related
I need to know how to make it possible for someone to send me a .gif or jpeg image through a form, by using a browse button etc.
Basically so after they have selected the picture they want to submit (by clicking on browse) and after they have filled out the rest of the form, when they submit it I would like the image selected to upload and be sent to me (with the rest of the form).
I have already got the rest of the form, all I need is the 'field' where they will select there picture, and the script that will enable it to upload.
View Replies
View Related
i want to create an email form in ASP that can send emails to one and if possible multiple email addresses.
1. what requirements do i need. ie. web hosting .etc
Is it possible to make a form with a dropdown box for the different email addresses?
does anyone know where i can download a copy of something like this or have a copy themselves?
It can be just a simple type in your name, comments and submit form. just anything that works and how i get it to work.
View Replies
View Related
Does any one have working or sample scripts that will retrieve a form information and send that information to a specified email account? eg. a data request or a user comment form.
View Replies
View Related
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<%
Option Explicit
Response.Expires = 0
'you need to set up a variable (declare variables) for each filed fron your form page
' what I like to do is use the exact same name and add str for string to the beginning of it.
Dim strFirstName
Dim strLastName
Dim strAddress1
Dim strAddress2
Dim strCity
Dim strState
Dim strZip
Dim strEmail
' After you declare the variables you need to assign a value to each one.
' each variable will be assign the corresponding value being sent from the form
'If you need other form fields, declare them above and assign a value here, Just
'follow the same format......
View Replies
View Related
We run a small web ministry.
Our hosting company doesn't allow PERL, only Bamboo.SMTP and JMail asp's. (myhosting.com)
Our need? Turn the prayer request forms to an email that can
1. either send a different email to the requestor OR BCC an autoresponder we can set up.
2. BCC an email exploder on our mail system
3. make the FROM the requestor (done) and the TO: a 3rd email name on our system.
I see someone asked about a BCC function on Bamboo (none found), but the JMAIL set up we put up successfully executes but no emails are sent.
View Replies
View Related
I have a form when the end user hits submit it will go to email and database. What I am looking to do is if the user selects this particular checkbox it will go to both database and email. Otherwise it will just to the database. In the form below I am expecting the user to check the "sendback" checkbox if they want to send the email, if this checkbox is left blank it will simply add a new record in the database. See code below...
form.html....
View Replies
View Related
I am trying to create a form where when you click on the submit button, all the information in the form will be sent to the company email. And another form which content the thank you message will be sent to the client email. While doing i have successfully sent the message to both parties email. However, for both email there is no information written inside. Below is the code.....
View Replies
View Related
how can i configure webform to insert to database and send to email at the same time
i know how to do it individually but not together
html form:
<form name="form" method="post" action="">
View Replies
View Related
I designed a website which has a form in one of the pages..What I don't know is what i am supposed to write as script to make the form work. I want when users fill out the form and hit the submit button, all data will be sent to an email.
I'm aware that I should be using cgi or asp. but dont know how the script will look like and where should I put it in the server.
View Replies
View Related
I have a small shop on my web site and you order the products via a simple form. As an owner of the site, I want the order confirmations to be emailed to three email addresses, two adresses of mine plus one email to the person whoplaced the order. I donīt know how to fix this in the code though and that is my problem.
I can easily arrange for two of the addresses to get emails via the objMail.To command, so itīs when I try to add the buyers email that it gets weird.
That email address, Iīm getting through the form and the name tag "Emailaddress".
I tried to use the commands objMail.Cc and objMail.Bcc, but nothing happend and then I still only got emails sent to the addresses that I put in at the line objMail.To. Below is as far as I have gotten. If I put the three addresses like that and separate with a "&", I got all three email addresses right, but no space between them. So do you have any ideas on what character to use, to split these three addresses so that an email can be sent to all of them? Code:
View Replies
View Related
We have created a new ASP file that will process a standard HTML form, write the data submitted in the form to a database table, and send us an email of the data submitted. All works OK except if we now send that form code as part of an email, the form appears OK at the receiver's end, but when you fill in the form, there is no data that is transmitted back to the asp file.
The ASP file acknowledges the receipt of the form, and all that, but there is no data in the email and no data in the table.
It is obviously something that is happening when it is sent as an email, but I have seen this sort of thing done before, with a form in an email, and I wonder if anyone has some clues as to what we need to do to make the form work properly when sent as an HTML email.
View Replies
View Related