undefined $age in process.php (txt) |
undefined $age in process.php (txt) |
tudsy |
Apr 20 2022, 01:19 PM
Post
#1
|
Serious Coder Group: Members Posts: 251 Joined: 30-September 14 Member No.: 21,611 |
Hi
I get an error message saying that the variable $age is undefined in process.txt (php). $age = $_POST["Age"]; (line 66 in process.php (txt)). I don't know what is going on. form.php(txt) calls process.php (txt) when the for is submitted. Any help will be appreciated. Thanks. process.txt ( 4.82k ) Number of downloads: 371 form.txt ( 7.03k ) Number of downloads: 363 |
CharlesEF |
Apr 20 2022, 02:42 PM
Post
#2
|
Programming Fanatic Group: Members Posts: 1,991 Joined: 27-April 13 From: Edinburg, Texas Member No.: 19,088 |
Why is this line there:
CODE document.getElementById("email_signup").action = fetch( + "?ConsentOption =" + Consentjoin); The form action is 'process.php'. It looks like you want to change the action to the results of a fetch call. But the fetch contains no URL. You do appear to have a query string pair, but no URL. Also, fetch returns a promise so why would you put that in the form action? |
tudsy |
Apr 20 2022, 05:58 PM
Post
#3
|
Serious Coder Group: Members Posts: 251 Joined: 30-September 14 Member No.: 21,611 |
Hi
I changed the $_POST in process.php to $_REQUEST and it liked it. Thanks. |
Lo-Fi Version | Time is now: 10th November 2024 - 02:24 PM |