Tech-NO-Babble Posted February 22, 2010 Share Posted February 22, 2010 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 Link to comment https://forums.phpfreaks.com/topic/193007-my-first-simple-code-posting-a-form-to-webpage/ Share on other sites More sharing options...
jcanker Posted February 22, 2010 Share Posted February 22, 2010 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. Link to comment https://forums.phpfreaks.com/topic/193007-my-first-simple-code-posting-a-form-to-webpage/#findComment-1016467 Share on other sites More sharing options...
Tech-NO-Babble Posted February 23, 2010 Author Share Posted February 23, 2010 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. Link to comment https://forums.phpfreaks.com/topic/193007-my-first-simple-code-posting-a-form-to-webpage/#findComment-1016738 Share on other sites More sharing options...
Tech-NO-Babble Posted February 23, 2010 Author Share Posted February 23, 2010 I was looking for something simpler than installing WordPress and giving everyone permission to write their own post. But time is against me and I have to make a decison and have this thing live by 5 as it were. Link to comment https://forums.phpfreaks.com/topic/193007-my-first-simple-code-posting-a-form-to-webpage/#findComment-1016829 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.