Posting from dynamic page
Problem 1 - Local Server
After the submit button is pressed the address bar address becomes http://localhost/bootstrapelvis/teacupyorkieforsale.php?invalid=true. Because this is a dynamic page none of the information is correct and the database is not updated with the form values.
Problem 2 - website server
teacupyorkieforsale.php is the detail page that is used for all the puppies for sale. This page is called by <?php echo ($row_rsTeacups['DetailPage']); ?>-<?php echo $row_rsTeacups['ProdId']; ?>.html . Then the webconfig file rewrites the URL:
<rule name="Imported Rule 1" stopProcessing="true">
<match url="^([^-]*)-([0-9]+)\.html$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
<add input="{REQUEST_URI}" pattern="^/(information)" negate="true" />
</conditions>
<action type="Rewrite" url="/teacupyorkieforsale.php?detail={R:1}&Id={R:2}" appendQueryString="false" />
</rule>
So when the submit button is pressed the original address bar url needs to be called. Example the original url is http://www.elvisyorkshireterrier.com/chocolateyorkiepupforsale-193.html after the submit button is pressed the url needs to be http://www.elvisyorkshireterrier.com/chocolateyorkiepupforsale-193.html and not http://www.elvisyorkshireterrier.com/teacupyorkieforsale.php?invalid=true or http://www.elvisyorkshireterrier.com/teacupyorkieforsale.php?Id=193
I don't think it can be coded once to work in both cases but it would be nice is possible. I do need to be able to get to work for both cases so I can test on local server and then rewrite code(if necessary) for it to work on website server.