How do I create a form that, when submitted, a new page takes on its URL?

09-11-05, 04:36 AM
|
|
Newbie Coder
|
|
Join Date: Sep 2005
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
How do I create a form that, when submitted, a new page takes on its URL?
How do I create a form that, when it is submitted, a new page takes on the URL of the page with the form on it, effectively replacing that page with the new page? There are a series of forms after that with slightly different URLs which will be in turn replaced as new pages are written.
|

09-11-05, 03:50 PM
|
|
Coding Addict
|
|
Join Date: Mar 2005
Posts: 263
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hello,
Please be more specific. It is very hard to understand what you mean.
__________________
onPHP5.com - PHP5: Articles, News, Tutorials, Interviews, Software and more
|

09-12-05, 08:18 AM
|
|
Newbie Coder
|
|
Join Date: Sep 2005
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
Being more specific
Hello,
To be more specific I want to create a form, when submitted, it becomes a web page. The web page that is created replaces the URL of the form.
|

09-12-05, 08:24 AM
|
|
Newbie Coder
|
|
Join Date: Sep 2005
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
Example
Heres an example of what I'm looking for:
http://www.valeriemates.com/cgi-bin/...412&chapter=10
When you click on "Touch one of the Translucent areas", you will be taken to a form that, when you fill in and submit, will become a web page that replaces the URL of the form.
|

09-14-05, 03:54 PM
|
 |
Community VIP
|
|
Join Date: Oct 2003
Location: Chicago, IL
Posts: 2,171
Thanks: 3
Thanked 9 Times in 9 Posts
|
|
Here is what I THINK you are looking for:
|

09-15-05, 09:47 AM
|
|
Newbie Coder
|
|
Join Date: Sep 2005
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
Thank you digioz
Thank you digioz for the help. That code you suggested looks like it will do the job.
|

09-15-05, 09:53 AM
|
 |
Community Liaison
|
|
Join Date: Feb 2004
Posts: 1,232
Thanks: 1
Thanked 11 Times in 11 Posts
|
|
Quote:
|
Originally Posted by NormanTang
Hello,
To be more specific I want to create a form, when submitted, it becomes a web page. The web page that is created replaces the URL of the form.
|
That is actually less specific than your original question. Does the process involve a magic wand or secret handshake?
And type="textbox" is not a valid input attribute. Digioz might be thinking:
Last edited by Keith; 09-15-05 at 09:58 AM.
|

09-15-05, 10:05 AM
|
 |
Community VIP
|
|
Join Date: Oct 2003
Location: Chicago, IL
Posts: 2,171
Thanks: 3
Thanked 9 Times in 9 Posts
|
|
Hehehe.... you are absolutely right Keith. instead of textarea it should read:
That's what happens when you type a code out in a hurry. 
|

09-15-05, 10:10 AM
|
 |
Community Liaison
|
|
Join Date: Feb 2004
Posts: 1,232
Thanks: 1
Thanked 11 Times in 11 Posts
|
|
Haha... no worries, we've all done it.
|

09-16-05, 11:08 AM
|
|
Newbie Coder
|
|
Join Date: Sep 2005
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
Further question
Thank you Keith for the correction.
I have another question. How do I make it so that the web page, which is created when I submit the form, contains some formatted text and two links which lead to forms?
For example, if I had a form with a text box, where you would type the title of the chapter, when submited, the text in the text box would be formatted to a larger size and bold on the resulting web page.
The two links would lead to different threads of the story, or forms if the chapters haven't been written yet.
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|