I don't understand how much I need to fill in this box

Question:Please tell me what should I fill in for this action?

Repl link:https://replit.com/@Residual2023528/Python-Flask?s=app

{% extends "base.html" %}
{% block content %}
<h1>This is a cash from page.</h1>
<form method="post" action="https://0.0.0.0">
    <div class="mb-3">
        <label for="taiwanese-dallors" class="form-label">台幣</label>
        <input step="1" type="number" class="form-control" id="taiwanese-dallors" name="taiwanese-dallors">
</div> 
    <div class="mb-3">
      
        <label for="us-dallors" class="form-label">美金</label>
        
        <input step="0.1" type="number" class="form-control" id="us-dallors" name="us-dallors">
</div> 
        <div class="mb-3">
      
        <label for="note" class="form-label">備註</label>
        
        <input type="text" class="form-control" id="note" name="note">
</div> 
        <div class="mb-3">
      
        <label for="date" class="form-label">日期</label>
        
        <input  type="date" class="form-control" id="date" name="date">
</div> 
    <buttom type="submit" class="btn btn-primary">提交表單</buttom>
</form>
{% endblock %}

1 Like

You’d put the URL of your Repl there.

4 Likes

You can use something like <form method="post" action="/post">. This will automatically submit the data to https://yourdomain.com/post or http://localhost/post.

6 Likes

Is it written like this?

action="https://replit.com/@Residual2023528/Python-Flask?s=app/cash"
1 Like

No, I was referring to your repl.co link. Regardless, @Sky’s solution is easier.

4 Likes

So can you write it like this ?

action="/post/cash"
4 Likes

Yeah, that will work.

4 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.