# JS: Creating Code Generator

**URL:** <https://forum.kirupa.com/t/js-creating-code-generator/28833>\
**Category:** programming\
**Created:** [August 19, 2003, 4:22am UTC](https://forum.kirupa.com/t/js-creating-code-generator/28833 "2003-08-19T04:22:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BobbyDouglas](https://avatars.discourse-cdn.com/v4/letter/b/df705f/32.png) [@BobbyDouglas](https://forum.kirupa.com/u/BobbyDouglas)\
**Post date:** [August 19, 2003, 4:22am UTC](https://forum.kirupa.com/t/js-creating-code-generator/28833/1 "2003-08-19T04:22:05Z")

</div>

I am making a Code Generator so when a user enters their e-mail address, code is generated, and their e-mail address is displayed inside the code.

However, I have a problem with the script. Dunno exactly what it is, but my guess is the problem is with displaying the code.

Here is a link to a correctly working form using the same method:  
[www.mrbobdouglas.com/dev/errorpage.htm](http://www.mrbobdouglas.com/dev/errorpage.htm)

And the link to the page I am having a porblem with is:  
[www.mrbobdouglas.com/dev/errorpage2.htm](http://www.mrbobdouglas.com/dev/errorpage2.htm)

I would like errorpage2.php to display the functions.inc.php except where you enter the e-mail address, it uses the e-mail address the user entered in above.

I have included the functions.inc.php file as well as the 404.php file in the attached zip.

[EDIT] I have corrected the problem. You mut use a / before anything like to display a  
you will need to use /  
.[/EDIT]
