Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
I know it must be something simple, it is a simple script!
Old 06-26-2008, 09:59 PM I know it must be something simple, it is a simple script!
Sleeping Troll's Avatar
Ultra Talker

Posts: 351
Name: Butch Begy
Trades: 0
This script handles a form with a text area (Memo) and a text field (Email)
I know they are there I can see them in my header.
Response.Write... Blank! What stupid little thing am I missing?

Code:
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%
Memo=Request.QueryString("Memo")
Email=Request.QueryString("Email")
Response.Write(Memo)
Response.Write(Email)
Set conn=Server.CreateObject("ADODB.Connection")
conn.Provider="Microsoft.Jet.OLEDB.4.0"
conn.Open Server.MapPath("/Data/WebData.mdb")
SQL="Insert Into Memos Values (Now(),'"&Memo&"','"&Email&"')"
Response.Write(SQL)
'conn.Execute SQL 
conn.close
Set conn=nothing
%>
<html>
<head>
</head>
<body>
<style type="text/css">
<!--
body {
background-image: url(/images/Santa%20Fe%20Stucco.bmp);
}
-->
</style>
<p>&nbsp;</p>
<h2 align="center">Your note has been sent, Thank you! </h2>
</body>
Sleeping Troll is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-26-2008, 11:12 PM Re: I know it must be something simple, it is a simple script!
nyef's Avatar
Ultra Talker

Posts: 265
Name: Lucas
Trades: 0
Is the form being submitted via POST? If so you need to use Request.Form instead of Request.QueryString.
__________________
~nyef

Please login or register to view this content. Registration is FREE
nyef is offline
Reply With Quote
View Public Profile Visit nyef's homepage!
 
Old 06-26-2008, 11:45 PM Re: I know it must be something simple, it is a simple script!
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,023
Name: Forrest Croce
Location: Seattle, WA
Trades: 0
You're probably not encoding a special/reserved character in the url. Sending a memo through a query string is inviting this kind of trouble.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
Old 06-27-2008, 12:52 AM Re: I know it must be something simple, it is a simple script!
Sleeping Troll's Avatar
Ultra Talker

Posts: 351
Name: Butch Begy
Trades: 0
nyef, you are my God! OK, not really, but you deserve my undying gratitude. I knew it would be something stupidly simple, but so many looked right past it just like me!

Thx 10^6
Sleeping Troll is offline
Reply With Quote
View Public Profile
 
Old 06-27-2008, 01:23 PM Re: I know it must be something simple, it is a simple script!
nyef's Avatar
Ultra Talker

Posts: 265
Name: Lucas
Trades: 0
Glad I could help =)
__________________
~nyef

Please login or register to view this content. Registration is FREE
nyef is offline
Reply With Quote
View Public Profile Visit nyef's homepage!
 
Reply     « Reply to I know it must be something simple, it is a simple script!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.14529 seconds with 12 queries