I tried reading all the other topics on this, but nothing was too close to what I need. So, if I missed something somewhere, sorry, but for now, I'm having a common issue and can't find a solution.
I made a form that connects to my database to edit news articles that I have posted. Everything is working fine when it comes to functionality and getting the data, but my issue is really trying to submit my edit.
This is the form itself:
<form method="get" action="/index.php?page=editnews&id=$row[id]">
<div><label>id</label><input type="text" name="id" id="id" value="<?= $row['id']?>" readonly/></div>
<div><label>Header</label><input type="text" name="header" id="header" value="<?= $row['header']?>"/></div>
<div><label>Story</label><textarea type="text" name="story" id="story" cols="10" rows="20" wrap="soft"><?= $row['story']?></textarea></div>
<input type="submit" value="Submit">
</form>
When I hit submit, it only takes me to "index.php=id". It's skipping the whole "page=editnews" part after index.php.
What am I missing here?