• Good Morning,

    Thank you for reading this. I am trying to make a HTML form with a submit button, which I would like to cause the current page to reload.

    On pressing the submit button I would like the page to reload itself:
    [ redundant link removed ]
    However, the following location is where it arrives:
    /

    I am not sure what to do to fix this. Can you give me some help with this?

    here is my form code:

    		<div class="create-note">
    		<form action="https://alaskametrology.com/?page_id=167" method="get">
    			<h3 class="headline headline--medium">customer address</h3>
    			<label for="customer_name">customer name</label>
    			<input class="new-note-title" name="customer_name" placeholder="business name ">
    			<label for="address_1"></label>
    			<input class="new-note-title" name="address_1" placeholder="street address 1 (default street address)">
    			<label for="address_2"></label>
    			<input class="new-note-title" name="address_2" placeholder="street 2 (optional)">
    			<label for="city"></label>	
    			<input class="new-note-city" name="city" placeholder="city">			
    			<input class="new-note-city" name="workorders_workorder_number" placeholder="state">			
    			<input class="new-note-city" name="workorders_workorder_number" placeholder="zip">	
    			
    			<hr>
    			<h3 class="headline headline--medium">contact person</h3>
    			<label for="recieved-date">person name</label>		
    			<input type=input class="new-note-title" name="workorders_estimate_number" placeholder="name">
    			<label for="city"></label>	
    			<input class="new-note-city" name="city" placeholder="phone number">
    			<label for="city"></label>	
    			<input class="new-note-city" name="city" placeholder="email">
    			
    			<hr>
    			<h3 class="headline headline--medium">special notes</h3>
    			<textarea class="new-note-title" name="workorder-note" placeholder="specific notes and instructions for this customer"></textarea>
    			
    			<input type="hidden" name="customers_id" value="<?php echo $my_customers_id; ?>">
    			<input type="hidden" name="action" value="create_new_thingy">
    			<input type="submit" class="submit-note" value="create new customer">
    			<a class="btn btn--orange" href="#" onClick="history.back();return false;">cancel</a>
    		</form>
    		</div>

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter beaglebreath

    (@beaglebreath)

    While troubleshooting this fiasco, I found the .htaccess file.

    I edited the file to include;

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    After saving the file, I confirmed it was updated. I returned to the permalinks settings in my wp-admin, and clicked “save changes”.
    Afterward I looked at the .htaccess file, and it had been reverted to the previous contents…

    Anyone know what might be happening here?

    Thread Starter beaglebreath

    (@beaglebreath)

    I have restored .htaccess to the code shown above and then changed the permissions to r–r–r–.

    the .htaccess is nolonger being overwritten, but this has not fixed my permalinks symptoms.

    Thread Starter beaglebreath

    (@beaglebreath)

    I changed all the names of my input fields to unusual names to avoid using someone elses key word, but that also did not fix the isses.

    next I added a hidden field:
    <input type="hidden" name="page_id" value="167">
    and that let the page reload.

    I do not understand these frustrating time killers.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘HTML form with submit button won’t got to permalink’ is closed to new replies.