Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8552383
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T14:24:44+00:00 2026-06-11T14:24:44+00:00

My question is should I convert two html pages to php pages, so the

  • 0

My question is should I convert two html pages to php pages, so the called page can access its POSTed parameters, or is there a way for a called html (.html extension) page to access posted parameters?

I’ve been reading that because posted parameters are server-side there is no way for JavaScript to do this being client side. I’ve seen nothing about one html page accessing
parameters if that .html page was accessed via a POST.

Here is my calling form. The called form, needs access to TransDesc (below), which is a text field.

<script type="text/javascript" language="JavaScript1.2">

// Check where we came from so that we can go to the right spot when the
// form gets posted from outside of our HTML tree.
var PostURL = '/event.html';

</script>

Enter a Donation Amount
<script type="text/javascript" language="JavaScript1.2">
document.write(
'<form name="InvGenPayDonation" 
action="'+PostURL+'" 
onsubmit="return validateForm();"
method=POST>');
</script>

<p> $ <input type='text' name='Amount' value="0.00">
</p>
<p>In honor of <span style="color: #FF0000">
<input type='text' name='TransDesc' id='TransDesc' value="" >
</p>
<input type="submit" value="Next"> <br /><br />
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T14:24:45+00:00Added an answer on June 11, 2026 at 2:24 pm

    A static HTML file cannot access variables that have been POST’ed to it. It can’t even know they’re there as they’re sent to the server in the HTTP request, the server then deals with them and sends the HTML page in the HTTP response. They’re ‘consumed’ before the page is even sent to the client.

    You could use GET and access them via JavaScript, or configure Apache to server .html files as PHP files instead though.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Simple C question, how can I correctly and succintly convert milliseconds to seconds. There
Question should say it all. Let's say there's a local file mydefaultvalues.txt, separated from
I'm currently developing and I came up to the following question: How can/should I
I should preface this question by saying that I am new to JavaServer Pages.
Based on the first two answers, the question was unclear as originally posted, thus
Question Should one discard a packet with an unknown IPv6 extension header? Details I
I have a very simple yes no question: should static methods have same result
Edited Question: This should be clear. using System; namespace UpdateDateTimeFields { class Program {
I have a question that should be quick and easy for you guys to
This may not be the kind of question one should ask on StackOverflow, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.