Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Forum
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum

 Post Reply Post Reply
Author
Goofy Newfie View Drop Down
Newbie
Newbie
Avatar

Joined: 03 October 2003
Location: Canada
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote Goofy Newfie Quote  Post ReplyReply Direct Link To This Post Topic: Forum
    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



Edited by Goofy Newfie
Back to Top
fernan82 View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 17 November 2002
Location: United States
Status: Offline
Points: 362
Post Options Post Options   Thanks (0) Thanks(0)   Quote fernan82 Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Goofy Newfie View Drop Down
Newbie
Newbie
Avatar

Joined: 03 October 2003
Location: Canada
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote Goofy Newfie Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Goofy Newfie View Drop Down
Newbie
Newbie
Avatar

Joined: 03 October 2003
Location: Canada
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote Goofy Newfie Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Goofy Newfie View Drop Down
Newbie
Newbie
Avatar

Joined: 03 October 2003
Location: Canada
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote Goofy Newfie Quote  Post ReplyReply Direct Link To This Post Posted: 12 November 2003 at 6:22pm

Hello,

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

Roland

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.