I'm sorry for my stupidity and incompetence, but I have a new problem.
This script is for writing QCs when compiling models, and the first document is supposed to allow the user to choose the amount of frames by simple input boxes which is sent to this next one.
This one supposed to list the number of frames and allow the user to give each frame a name, which will then be sent to the next page to be printed:
-phpsnip-
How am I supposed to send all the names to the next phase?
We were all beginners at one point, don't worry about it 
From what I can tell, you are trying to find a way for your script to know all of the different name fields that are available, correct? Something you may try is a handy trick to POST the data as an array, and cycle through that loop using foreach. You can achieve this by using a name of "whatever[]".
For example, say you have the form;
<form method="POST" action="action.php">
<input type="text" name="frame[]" size="20" value="Facepunch" />
<input type="text" name="frame[]" size="20" value="Blah" />
<input type="text" name="frame[]" size="20" value="5" />
</form>
This will pass the data in a way where PHP will recognize it as an array. Basically, it's the same as saying,
$_POST['frame'] = array('Facepunch', 'Blah', '5');
Good luck, hope this helps.
Edited:
I'm trying to tackle something here. I'm using mysqli prepared statements. What I want to do is pass HTML and CSS into them. HTML works fine. It passes through, however if I try something like
<p style="text-align:center;">
it doesn't work. The paragraph will come into effect but the text align wont.
How does the output of that look in the browser? Are there any stray backslashes? If there are some, you might need to run a stripslashes to get rid of them.
Edited:
I've got that bit sorted, now I just need to get the die() error messages to appear on the index.php page rather than a white blank page. How do I do this?
So you're trying to do something along the lines of error handling that won't break the output of your page? You could try a few things. The first is something that isn't exactly error handling, but it will display your page around the message. Basically, you can write your own function such as;
stylishDie('Oh no! Something happened, please try again!');
exit; And, simply have the function wrap your page around that.
function stylishDie($msg) {
echo '<!DOCTYPE html>
...
<div id="message">'.$msg.'</div>
...
</html>';
}
That is probably the simplest way of doing this, but I'm certain there are much better, more flexible ways to get this done.
Edited:
I'm sure he'll be changing that anyway. I guess I should get out of the habit of using ' ' first. :frown:
Worst part is that once you start using double quotes, you'll find yourself needlessly escaping single quotes.