I dont have a page already created ..
i have to create a page n then save it on web server ..
So let me get this straight, basically your user will enter code into your first page that creates and saves the second page on the server?(There's a big security problem doing this...I'd advise against doing this)
What are you trying to do?
On the first page, is the user given some options to customize their own page or something?? In this case, you should have a page already created for them...then just set the customizable components' visibility values to true or false based on the options they selected.
Could you be a bit more clear on what you are trying to do?
-Frinny