Print Page | Close Window

Forum

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: General Discussion
Forum Description: General discussion and chat on any topic.
URL: https://forums.webwiz.net/forum_posts.asp?TID=6797
Printed Date: 30 March 2026 at 11:03am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Forum
Posted By: Goofy Newfie
Subject: Forum
Date Posted: 28 October 2003 at 6:31pm

Hello everyone,

Lets say you are making a forum, can you post your content in another file after you click send without being on the net?

Example:

The submittion file is call "post.html", and for the the data you just submitted would be "cn.html"?

Thanks

Roland




Replies:
Posted By: fernan82
Date Posted: 28 October 2003 at 7:01pm
you mean on a test server..?

If so yes you can, if the other file is on the same folder just use <form method=POST action=cn.html> If not then use a virtual path from the root or a path from the page like /root/folder/cn.html or ../folder/cn.html

-------------
FeRnAN
http://www.danasoft.com/">


Posted By: Goofy Newfie
Date Posted: 30 October 2003 at 5:09pm

Thanks for the info, but there's still one problem. When I click on POST I only get a white screen.

Here is my codes

<form method="post" action="content.html">
From <input type"text" name="From" id="From"><br><br>
Name <input type="text" name="Name" id="Name"><br><br>
Subject <input type="text" name="Subject" id="Subject"<br><br>
Message Box<br>
<textarea rows="10" cols="25"></textarea>
<input type="submit" value="Post" target="content.html">
</form>

In order for that to work, do I need to a line in the content.html to receive my posting?

Roland



Posted By: dpyers
Date Posted: 30 October 2003 at 6:37pm

action="content.html"

The action= needs to reference a form handler program or script that will pick up the fields passed to it and do what ever you want. You can loose the target=

You also need a name= for the textarea

In this case, to display the fields with a line break after each using asp, you would replace action="content.html" with action="content.asp"

content.asp would be a file containing

<%

Response.write request.form("From")

Response.write "<BR>"

Response.write request.form("Name")

Response.write "<BR>"

Response.write request.form("Subject")

Response.write "<BR>"

Response.write request.form("NameForTextarea")

Response.write "<BR>"

%>



-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: Goofy Newfie
Date Posted: 01 November 2003 at 5:22pm

Hi,

Sorry to tell you that when I tried post something, it still don't show me content.  Below is my two a lot code for you view.

index.html

<html>
<!-- Generated by AceHTML Freeware http://freeware.acehtml.com -->
<!-- Creation date: 11/1/2003 -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title></title>
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="author" content="roland.reid@nf.sympatico.ca">
<meta name="generator" content="AceHTML 5 Freeware">
</head>
<body>
<form action="content.asp" method="post">
<div align="top">Message:</div> <textarea rows="10" cols="40">[Type your message]</textarea><br>
<input type="submit" value="Post">

</form>

</body>
</html>

content.asp

<html>
<!-- Generated by AceHTML Freeware http://freeware.acehtml.com -->
<!-- Creation date: 11/1/2003 -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title></title>
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="author" content="roland.reid@nf.sympatico.ca">
<meta name="generator" content="AceHTML 5 Freeware">
</head>

<body>
<%
Response
.write request.form("From")

Response
.write "<BR>"

Response
.write request.form("Name")

Response
.write "<BR>"

Response
.write request.form("Subject")

Response
.write "<BR>"

Response
.write request.form("NameForTextarea")

Response
.write "<BR>"

%>
</body>

</html>

Hope you can help

 

Thank-you

Roland



Posted By: dpyers
Date Posted: 01 November 2003 at 6:02pm

Actually, it's probably executing, but you took out the From, Name, and Subject fields from the form in index.html, and didn't give a name= to the textarea so the content.asp has no fields passed to it.

The code I posted and the instructions for naming the textare was for the form in your original post.

Also, all you need in content.asp is the stuff between the <% and the %>



-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: Goofy Newfie
Date Posted: 12 November 2003 at 6:22pm

Hello,

There's still one problem!  When I click Post, then the script will appear.

Roland




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net