• 0

Need Some Help with form action in HTML Code


Question

Hello!

I'm doing some homework for my university and I would like my homework to be accessed remotely as well.

I have already port formwarded and I can access my webpage but when I press submit from a Remote IP my webpage does not work correctly because there's a mistake in the form action code line and I do not know how to correct that.

 

Here's the HTML code

 

 I want to correct the form action line in order for my webpage to work correctly from other clients as well

<!-- A form for selection a of a continent. Selection to be sent by POST -->
<HTML>
<HEAD>
   <TITLE>Cookie will be written in our disc</TITLE> 
</HEAD>
<BODY>
<FORM ACTION="http://localhost:8080/myExamplesDir/firstCookieDemo"
                                                                                                                         METHOD="POST">      
      <STRONG>Select the Continent of your Destination:<br> </STRONG>
      <PRE>
      <INPUT TYPE="radio" NAME="continent" VALUE="Europe">check here for Europe<BR>
      <INPUT TYPE="radio" NAME="continent" VALUE="Asia">check here for Asia<BR>
 <INPUT TYPE="radio" NAME="continent" VALUE="America" CHECKED>check here for America<BR>
      <INPUT TYPE="radio" NAME="continent"  VALUE="Africa">check here for Africa<BR>
      </PRE>
      <INPUT TYPE="submit" VALUE="Submit">
      <INPUT TYPE="reset"> </P>
   </FORM>
</BODY>
 
</HTML>

post-174060-0-09778000-1399732886.png

post-174060-0-34811800-1399732888.png

post-174060-0-66110800-1399732890.png

9 answers to this question

Recommended Posts

  • 0
  On 10/05/2014 at 14:50, MariosX said:

Is there any way to correct that?

 

If you want it online so that it can be accessed by anyone you will need to setup a web server. There are much quicker solutions such as: http://bowery.io which sets up a dev environment in 30 seconds and gives u a web accessible URL... if you are not experienced with servers and web dev stuff you will need to read up on the docs... or better yet a few dollars for a host account and host it online.

  • 0

If I change my

<FORM ACTION="http://localhost:8080/myExamplesDir/firstCookieDemo">

to

< <FORM ACTION="http://myhostname.com:8080/myExamplesDir/firstCookieDemo"

 

It will work but it won't work on my hostname

  • 0

Setup your router and apache server config to make your localhost a public ip server.

 

So first make sure you're using port 80 instead of 8080 then test if you can connect with another device on the same wifi network to your computer ip"*

Then forward your pc ip to your public ip**

 

 

 

*192.168.1."something" in most cases

**63.233.34.12 looks like this

 

 

If you got a hostname(example.com) make sure to point it to your pc ip address, this can be done with a A record.

  • 0
<form action="/myExamplesDir/firstCookieDemo"  method="POST">

That should do it. Starting a URL with / makes it relative to the current host root.

 

And please use lowercase HTML elements, it looks much better and is a convention. If you start using developer tools you'll notice everything is lowercase too, even if you write it uppercase in your HTML.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • People yearn for the good old days of IRC and truly open Internet, yet are dismissive of modern solutions like ActivityPub (which Mastodon pioneered) and Matrix. Make it make sense.
    • AI judges learn new tricks to fact-check and code better by Paul Hill Image via Pixabay AI researchers and developers are increasingly turning to large language models (LLMs) to evaluate the responses of other LLMs in a process known as “LLM-as-a-judge”. Unfortunately, the quality of these evaluations degrades on complex tasks like long-form factual checking, advanced coding, and math problems. Now, a new research paper published by researchers from the University of Cambridge and Apple outlines a new system that augments AI judges with external validation tools to improve their judgment quality. This system aims to overcome limitations found in both human and AI annotation. Humans face challenges and biases due to time limits, fatigue, and being influenced by writing style over factual accuracy while AI struggles with the aforementioned complex tasks. The Evaluation Agent that the researchers created is agentic so it can assess the response to determine if external tools are needed and utilizes the correct tools. For each evaluation, three main steps are passed through: initial domain assessment, tool usage, and a final decision. The fact-checking tool uses web search to verify atomic facts within a response; code execution leverages OpenAI’s code interpreter to run and verify code correctness; and math checker is a specialized version of the code execution tool for validating mathematical and arithmetic operations. If none of the tools are found to be useful for making judgments, the baseline LLM annotator is used to avoid unnecessary processing and potential performance regression on simple tasks. The system delivered notable improvements in long-form factual checking, with significant increases in agreement with ground-truth annotations across various baselines. In coding tasks, the agent-based approach significantly improved performance across all baselines. For challenging math tasks, the agents improved performance over some baselines, but not all, and overall agreement remained relatively low at around 56%. Notably, the researchers found that in long-form factual responses, the agent’s agreement with ground-truth was higher than that of human annotators. This framework is extensible, so in the future, other tools could be integrated to further improve LLM evaluation systems. The code for the framework will be made open source on Apple’s GitHub, but it isn’t up yet.
    • https://www.neowin.net/news/tags/mastodon/ In short: Federated Twitter (X)
    • Keep in mind it was purchased by an advertising company. I use SearxNG.
    • I am using Waterfox Private Search now that I started using the Waterfox browser on my PC and Android. Both work great* search waterfox net with full stops in between. * I have an issue where making comments on articles on various websites is difficult with Waterfox on Android as it randomly adds spaces and doubles up on text.
  • Recent Achievements

    • Collaborator
      fernan99 earned a badge
      Collaborator
    • Collaborator
      MikeK13 earned a badge
      Collaborator
    • One Month Later
      Alexander 001 earned a badge
      One Month Later
    • One Month Later
      Antonio Barboza earned a badge
      One Month Later
    • Week One Done
      Antonio Barboza earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      588
    2. 2
      ATLien_0
      221
    3. 3
      Michael Scrip
      171
    4. 4
      Xenon
      137
    5. 5
      +FloatingFatMan
      126
  • Tell a friend

    Love Neowin? Tell a friend!