Jump to content

my first simple code: posting a form to webpage


Tech-NO-Babble

Recommended Posts

Hello, after working with PHP programs and making minor changes to them, I finally tried to program what I think is a simple project. The idea is to have a form that each homeowner fills out and then have it post to thier own page with the ability to edit the form again.

 

cmg.htm

<html><body>
<h4>Grass Oaks III Residents Association, Inc</h4>
<form action="process.php" method="post"> 
Name:<input type="text" name="name">
Address: <input type="text" name="address"> 
<input type="submit">
</form></body></html>

process.php

<html><body>
<?php
$address = $_POST['address'];
$name = $_POST['name'];

print "name: ". $name . "<br />";
echo "address: ". $address . " ";

?>

</body></html>

 

I know it's a simple form and php code. It works but I need the post to be sent to www.customerdomain.com/grassy point/a certain address for each person who fills out the form.htm or php

 

Thanks for your help,

 

Alex Molitor

I think you're putting the operations cart before the horse?  Why do you need to have a separate page for each user?  The only thing there is that their name will be in the URL.  Instead, just send them to the processing page that dynamically shows the data relevant to them.

The client wants it this way. Each customer of the client has a private page that they fill out. The customer logs into to their page answers the form and the page is created and the Client can review the pages and the customers can edit their pages. Thats the plan anyway.

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.