Jump to content

Help making a simple form


mallard

Recommended Posts

I wanna make a simple form on my site that will submit content on a page.

 

I added this piece of code to my notes.php file...

<?php echo $_GET["date"]; ?><br />
<?php echo $_GET["note"]; ?>

And I created a new file called post.php with this code in it...

<p>Use this form to post new notes.</p>

<form action="get" target="notes.php">
Date: <input type="text" name="date"><br /> 
Note: <input type="text" name="note"><br /> 
<input type="submit" value="SUBMIT ENTRY"> 

</form>

I can't figure out how to make it work. Basically I just wanted to make this "post" page with a form post content on the "notes" page.

 

Am I missing something?

Thanks for any help!

 

 

Link to comment
https://forums.phpfreaks.com/topic/47695-help-making-a-simple-form/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.