Reply
How do I make this type of script?
Old 10-05-2006, 09:37 PM How do I make this type of script?
Junior Talker

Posts: 4
Name: dsfkgfdsgdfsgdfs
What commands/etc in php are required to make a form to submit information and post it on another page? is it tough? Thanks, ALL!
comp_geeks is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 10-05-2006, 09:59 PM Re: How do I make this type of script?
cpfreak23's Avatar
Super Talker

Posts: 143
This sounds like it would require using a database to store what people post...so what you would have to do is:

> have a page the people write their post
> then that page takes what that person wrote and sends it to a database to be stored.
> A second page would get everything from the database and display it

Its not terribley hard, but on the other hand it's not the easiest thing in the world. I would tell you better instructions but I'd end up confusing every1, i confuse myself most of the time
cpfreak23 is offline
Reply With Quote
View Public Profile
 
Old 10-05-2006, 10:08 PM Re: How do I make this type of script?
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
Wireless Audio
Posts: 2,320
Name: Keith Marshall
Location: West Hartford, CT
With the use of html forms, you would set the action to point to a php that can read the user data input. For example:

HTML Form Page:
HTML Code:
<form action="submit.php" method="post">
  Your Name:<br />
  <input type="text" name="name" />
</form>
PHP Page:
PHP Code:
<?php
  
  
// The form data is in the $_POST array
  
echo 'Hello there ' $_POST['name'];
  
?>
Would Display:

Hello there mgraphic
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 10-05-2006, 11:45 PM Re: How do I make this type of script?
cpfreak23's Avatar
Super Talker

Posts: 143
I think I may of misread what you originally asked...
Do you want to be able to just see what you posted that one time, like you fill out a contact form and when you click 'submit' you are brought to a page that shows what you just typed in....or do you want to be able to "save" what everyone says, and upon loading a page you see what everyone has said?

If you want the 'post' to show just the one time - right after the user types in and submits the form, then what mgraphic said above will work just fine, and its relatively easy

If you want it so that is saves everyone's submission and upon loading the page it shows everybody's post, then you'll need to do what I said, which is a bit more complicated

Hope this helps,
Conrad
cpfreak23 is offline
Reply With Quote
View Public Profile
 
Old 10-06-2006, 07:17 AM Re: How do I make this type of script?
Junior Talker

Posts: 4
Name: dsfkgfdsgdfsgdfs
Quote:
Originally Posted by cpfreak23 View Post
I think I may of misread what you originally asked...
Do you want to be able to just see what you posted that one time, like you fill out a contact form and when you click 'submit' you are brought to a page that shows what you just typed in....or do you want to be able to "save" what everyone says, and upon loading a page you see what everyone has said?

If you want the 'post' to show just the one time - right after the user types in and submits the form, then what mgraphic said above will work just fine, and its relatively easy

If you want it so that is saves everyone's submission and upon loading the page it shows everybody's post, then you'll need to do what I said, which is a bit more complicated

Hope this helps,
Conrad
Yes, the 2nd one. Could anyone explain what goes into doing that?
comp_geeks is offline
Reply With Quote
View Public Profile
 
Old 10-06-2006, 07:35 AM Re: How do I make this type of script?
jito's Avatar
MY LIFE IS 'i' LIFE

Posts: 551
Name: surajit ray
Location: inside the heart of my friends
add a insert statement after submit in the first page and redirect it to the second page where select the values from table to display.
__________________
Think+, work +, but not HIV + :)
jito is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to How do I make this type of script?
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.14624 seconds with 12 queries