Separate Tab for HTML page :smiley-confuse:

I want a full, polished HTML page in this program without having to write out every line of it like this: "client.print();".
Yes I know and have succeeded in pasting the whole HTML page code into 1 line but it is messy and hard to edit.
I thought I could call the page as a function in another tab (webpage.ino) and hence edit and refer to it easily in the main code (WiFi_Data_SendReceive.ino), but I'm having issues.
Can anyone help please??

webpage.ino (563 Bytes)

WiFi_Data_SendReceive.ino (4.94 KB)

(deleted)

spycatcher2k, thanks so much for the super fast reply, amazing how quickly you found that!
However, I'm still getting this error:

Would you know how to rectify it?

(deleted)

Thanks again for reviewing my image - I did upload code, in my original question.
Perhaps I uploaded incorrectly if you're not seeing it, sorry.

(deleted)

Oh, I'm sorry for my misunderstanding!

webpage.ino (542 Bytes)

WiFi_Data_SendReceive.ino (4.95 KB)

(deleted)

Although it's not really what I wanted, I have removed that particular error by putting all of the HTML onto 1 line, but now I've got a compiling error!
I really appreciate your help but don't feel the need to keep on helping me with my millions of beginner questions :slight_smile:

(deleted)

Aight:

#include <webpage.h>
^
compilation terminated.
exit status 1
Error compiling for board Arduino/Genuino MKR1000.

webpage.ino (522 Bytes)

WiFi_Data_SendReceive.ino (4.95 KB)

(deleted)

(deleted)

Ok, I corrected my code to exactly what you put, and got this error message, which was not corrected by putting webpage.h in the 'libraries' folder.

(((I tried to edit my previous comment to say "Ignore this" but wasn't able to)))

It all compiles fine now, I shall test!

....

Works fine, I just had to change <WiFi.h> back to <WiFi101.h>

Thanks so much for all your help - I suppose by now this kind of thing is utterly basic to you :slight_smile: :slight_smile: