Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Posting forms displays code

New Here ,
May 02, 2006 May 02, 2006
I have a few pages that post form contents to another page. Whenever I submit the form it displays the code instead of processing the form and displaying the results. Any ideas?
TOPICS
Server side applications
286
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 02, 2006 May 02, 2006
Do you a URL to look at, but generally issues like this relate to either the
server setup, or some invalid code in a script

--
Paul Whitham
Certified Dreamweaver MX2004 Professional
Adobe Community Expert - Dreamweaver

Valleybiz Internet Design
www.valleybiz.net

"LeeMc" <webforumsuser@macromedia.com> wrote in message
news:e38sl7$nk8$1@forums.macromedia.com...
>I have a few pages that post form contents to another page. Whenever I
>submit the form it displays the code instead of processing the form and
>displaying the results. Any ideas?


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 02, 2006 May 02, 2006
Paul,

Sorry no URL....It's doing it on several pages. For instance, I just created a simple form to make sure it wasn't my other code that was the problem (They worked before but I haven't tried them in a few months.) It still posts the code, not the results.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 03, 2006 May 03, 2006
On 02 May 2006 in macromedia.dreamweaver.appdev, LeeMc wrote:

> Paul,
>
> It's doing it on several pages. For instance, I just created this
> simple form
> to make sure it wasn't my other code that was the problem...
>
> <HTML>
> <BODY>
> <FORM METHOD=GET ACTION="elvalues.asp">
> TextBox1:<BR>
> <INPUT TYPE=TEXT NAME=TextBox1>
> <P>
> TextBox2:<BR>
> <INPUT TYPE=TEXT NAME=TextBox2>
> <P>
> TextBox3:<BR>
> <INPUT TYPE=TEXT NAME=TextBox3>
> <P>
> <INPUT TYPE=SUBMIT VALUE="Submit Form">
> </FORM>
> </BODY>
> </HTML>
>
> Here's elvalues.asp...
>
> <HTML>
> <BODY>
> <FORM METHOD=GET ACTION="elvalues.asp">
> TextBox1:<BR>
> <INPUT TYPE=TEXT NAME=TextBox1>
> <P>
> TextBox2:<BR>
> <INPUT TYPE=TEXT NAME=TextBox2>
> <P>
> TextBox3:<BR>
> <INPUT TYPE=TEXT NAME=TextBox3>
> <P>
> <INPUT TYPE=SUBMIT VALUE="Submit Form">
> </FORM>
> </BODY>
> </HTML>
>
> It posts the code, not the results.

elvalues.asp should contain code which takes the input from your form
and processes it, not which duplicates the form. Also, method="get"
sends the information as part of the URI; you probably want to use
method="put".

<FORM METHOD="post" ACTION="elvalues.asp">
<p>TextBox1:<BR>
<INPUT TYPE=TEXT NAME=TextBox1></p>
<p>TextBox2:<BR>
<INPUT TYPE=TEXT NAME=TextBox2></p>
<p>TextBox3:<BR>
<INPUT TYPE=TEXT NAME=TextBox3></p>
<INPUT TYPE=SUBMIT VALUE="Submit Form">
</FORM>

in elvalues.asp:

<h1>You entered:</h1>
<p>TextBox1: <%= request.Form("TextBox1") %></p>
<p>TextBox2: <%= request.Form("TextBox2") %></p>
<p>TextBox3: <%= request.Form("TextBox3") %></p>

Does your server support ASP?

--
Joe Makowiec
http://makowiec.net/
Email: http://makowiec.net/email.php
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 03, 2006 May 03, 2006
LATEST
Hi,

My machine is not processing any scripts...I'm not sure what settings may have been changed...
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines