I created a web form in html, I need to create a server-side script
using ASP and embed it into the html, so that when the user clicks
submit, it sends(saves) the data from text boxes, drop-downs etc, to a
text(.txt) file on the server. It needs to be in csv format so that
they can create an excel file from it.
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 .......
So, when my search returns the result I need one of the fields to be clickable and show the customer's info for the clicked customer.So, lets say we make the ID clickable. So, my HTML has to look like:Code:
<input type = "submit" value="sqlrs("ID")">
How do I construct that in ASP since, using " in strings ends it and same with Response.write methods.
I have a database in which i store questions and answers, but the questions are about HTML, Javascript, ASP...... So i store into my database a question like 'How do you make a letter/word in HTML bold? Code:
I have an application which sends out emails in HTML format. I have a problem when I am trying to display images in the email (name of the image file is taken from database).
The problem is that if there is a space in the image file name, it displays a + (PLUS sign) and does not display the photo in GMAIL and other emails. The URL of the image gets displayed in the following manner:
if qstr = "main" then response.write = ("html here")
i can figure there must be a easier way to put html in asp, so that i wont need the response.write command on every new line... like there is in perl..
I am trying to send an email from an asp page in html format unfortunately when parenthese appear in the HTML code of the page to be emailed the ASP page reads them and trys to interpret them as ASP code
CDO is perhaps the most obscure art in web programming, but I hope someone would understand my issue. I have an ASP web application that needs to send email messages in HTML format only -- there is no plain text version. The messages are summaries of answers that people have input into an online survey, and need to have a tabular form.
The following somewhat plausible code does not work:
dim OMsg Set OMsg = Server.CreateObject("CDO.Message") OMsg.Fields("urn:schemas:mailheader:return-path") = BounceEmail OMsg.Fields("urn:schemas:mailheader:content-type") = "text/html" OMsg.Fields.Update
The return path header is set as desired, but the content type header stubbornly defaults to "text/plain". What is the secret to setting that header?
I have seen lots of code examples on the MSDN site for setting the content-type of body parts, but it seems needlessly complicated for my situation and doesn't work on my system anyhow (unknown ProgID error). So I was hoping to just set the message-level header to "text/html". (If I edit one of the messages from my script in notepad, changing the header to text/html by hand, it then is rendered correctly in email clients.)
Does anyone have the code to write all the form values to variables of the same name. So for example request.form("myname") would be stored in a variable called myname after running this. It should just save time from doing the request for all the fields.
I've written many pages that emails the content of a web form, but the data formatted very nicely. Is there a way to have the content of the submitted form data via email in XML?
I have an asp page that gives results for a search from a previous page from streetguide.streets in MySql. The page displays the UserName of the person logged in.
I have the results of this query displayed inside a form with hidden variables. When the user clicks "save to my folder" I want it to create a table in the mysql db with the same name as the user name, and then write to this table.
I have it working if I created the table beforehand, but I want the table to be created dynamically upon form submission with the table name to match the persons user name.
my database, sqlplus oracle, has a column ccexpiry, whch is set to date. In my form in asp, there will always be an error whenever i pass in a date that is not in the DD MMM YYYY which is the standard for oracle. My qn is how can i pass in a date that is in DD/MM/YYYY format? Code:
I have a text file that has two lines in it, the first line gives item labels, my second line gives values for those labels. I would like to use ASP to present this data on a web page. I also want the page to reload every 10 seconds so that any updates to the text file would be relfected on the web page.
I created a html form and its data is sent when the submit button is clicked. The files are: rcf.html this for the users to enter their data, rcf_add.asp this page is to show the users their data is recevied, and rcf_view.asp this page is the view all the data that is in the access database.
The problem I am running into is when the submit button is clicked on rcf.html page, it should take the users to the next page (rcf_add.asp) where saying "thank you..." but instead, the code of the rcf_add.asp is displayed. I am going to upload all of my files and if anyone can figure out why please please let me know! I've been trying for the past week.
I have a html form, and I like to know how to capture the values in the form after the user hit the submit button. How do I capture these values in an ASP page?
Basically, everything is written in ASP. Firstly, a user fills in an online (ASP) form, and then submits it to another ASP page (e.g. Send.asp). Now Send.asp retrieves all the form data and sends another HTML form via an e-mail. I then receive and open the HTML email(s). Now everything is going fine up until this point.
When I hit the submit button from the e-mail, it posts all the form data to another ASP page.
Now this is when things start to get a little weird.
Half the time when I submit the form via Outlook 2003 message, the other ASP page would load will all the form data intact. Every other time, the other ASP page would load will NO form data at all; just blank text boxes, textarea, checkboxes, etc ...
I've done a few experiment of my own in the hope of finding some answer. So far, I've only seen this happen to Outlook 2003 and not 2000 (we have a mixed between those 2 versions).
Also, it only happens to users in the same state as where the IIS server is located. For example, the server is located in state A, so any users with Outlook 2003 in State A will experience this problem half the time. Other users in State B, C, D, etc ... using Outlook 2003 does not experienc this problem. Because the link is a lot slower for our interstate users, I'm starting to think that maybe network speed has a part in this behaviour.
I'm using ASP and HTML for a form. I'm having a major issue with users copying from MS Word or Work Perfect into my text boxes. What I want to do is top this with either html, javascript, or asp.
How can I save form results as .txt or .html file ?Form contain also html tags <b>, <p align="center">...I want to alowe my users to online generate html or text files via WYSIWYG web editor.
I want visitors to be able to react on the website i'm making. I'm not an ASP-expert, but i've created a html contactform which sends it's data to a sendmail.asp-script. So far so good: i receive email.
What i don't like is that when the asp-script is executed a blank page is displayed and i would like to display a "Thank you-message" not in a new window but instead of the filled contactform. Again, i'm not an ASP-expert, but willing to learn.
Im looking for a way to preview/output html entered in a form a form in a new window. The idea is the user wanting to see what their html will look like before sending the actual email.