/    Sign up×
Community /Pin to ProfileBookmark

Submit button help

This is my script:

“<HTML>
<BODY>
<BASEFONT FACE=”ARIAL” SIZE=2>

<%
DIM TITLE, MESSAGE

TITLE = REQUEST.FORM(“TITLE”)
MESSAGE = REQUEST.FORM(“MESSAGE”)

%>

<BODY BGCOLOR=WHITE TEXT=BLACK>
<DIV STYLE=”POSITION:ABSOLUTE;LEFT=10%”>

New Entry

<FORM METHOD=”POST”>

<FIELDSET>
<LEGEND><b>Title</b></LEGEND>
<INPUT TYPE=”text” NAME=”TITLE” SIZE=”20″>
</FIELDSET>

<FIELDSET>
<LEGEND><b>Message</b></LEGEND>
<BR><textarea name=”message” ROWS=20 COLS=100></textarea>

</FIELDSET>
<INPUT TYPE=”SUBMIT” VALUE=”POST”>

<INPUT TYPE=”RESET” VALUE=”RESET”>

</FORM>

</DIV>

</BODY>
</HTML>”

the reset button works, but when i hit POST nothing happens. I want the “POST” button to post my title and message info on the same page or on a different page if possible. Is this possible? Does anyone know what I am doing wrong? Thank you for any help you can give!

to post a comment
JavaScript

6 Comments(s)

Copy linkTweet thisAlerts:
@novaphoenixApr 03.2006 — What exactly are you doing with these form fields, there's nothing wrong with your form (although an action attribute to the page you want post too wouldnt go amiss.. this is where you specify the page to send the form contents to), but your ASP code doesnt actually do anything with the values (apart from set them assign them to variables.

Im afraid ASP isnt a strong point of mine, but if it were php, you could test it out by doing:

[code=php]<?
$title = $_REQUEST['TITLE'];
$message = $_REQUEST['MESSAGE'];

echo $title;
echo $message;
?>[/code]


Also, dont forget to be consitent with your typing and casing. "MESSAGE" is not the same as "message"... as a general rule, try and keep lower case with html.
Copy linkTweet thisAlerts:
@RUGRAT54authorApr 03.2006 — I have an assignment from my teacher to create a website of some sort. I decided that I would do a website like myspace or journalspace, where I could have a section to create posts and a section to view posts.

It's like this "submit reply" button. When I submit it, the script posts it on the thread part. Thanks for the tip with uppercases and lowercases.
Copy linkTweet thisAlerts:
@novaphoenixApr 03.2006 — Cool, well as i said, the form itself is fine (apart from the casing), what you would need to look at is your ASP code (which is where my usefulness ends im afraid).

Hopefully you'll be able to find some help on that subject in a good ASP coders forum.

Good luck with your project... make Rupert Murdock envious! ?
Copy linkTweet thisAlerts:
@SuamereApr 03.2006 — I actually enjoy helping people learn web programming. My specialty is asp and vbscript. If you would like, instant message me on AIM/AOL at "Suamere" I can help you with this issue personally.
Copy linkTweet thisAlerts:
@RUGRAT54authorApr 04.2006 — i dont have aim or aol. sorry. can you help me through email maybe?
Copy linkTweet thisAlerts:
@SuamereApr 04.2006 — Sure, I can help you through Email. If you have MSN or Yahoo or something like that, I can help you through that, too. Do you have a user name? If no, then just go ahead and email me at [email][email protected][/email]. I can respond from there. But I'd rather type real-time if you know what I mean.
×

Success!

Help @RUGRAT54 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.8,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...