This commit is contained in:
2025-10-18 00:08:36 +09:00
parent 18bfdf9c4e
commit 4833b4ba28
5 changed files with 421 additions and 0 deletions

26
app.py Normal file
View File

@@ -0,0 +1,26 @@
from flask import Flask, render_template, request
app = Flask(__name__)
@app.route("/")
def ind():
return render_template('index.html')
@app.route("/process", methods=['GET', 'POST'])
def prcs():
if request.method == 'POST':
tel = request.form['tel']
tg = request.form['tg']
i = request.form.get('radio12')
if i == 'link':
urlOrText = request.form.get('linkI')
elif i == 'text':
urlOrText = request.form.get('textI')
else:
urlOrText = '0'
print(tel, tg, urlOrText)
return render_template('index.html')
if __name__ == '__main__':
app.run(debug=True)