Jump to content

help, form not posting correctly.


williamt74

Recommended Posts

Hi,

 

I have a db interface that passes variables as hidden data.

The issue I am having is that fhis works with all of my code except one.

When I click on the "button" it acts like it will process and then just take me to a blank page.

I don't see any differences in the code compared to the other buttons.

I even tried to change it to a Test page and see if it would atleast echop the variables but it still goes to a blank page.

 

so a button that works

 

<form action='home.php' method='POST'>
   <input type='hidden' name='action' value='df'>
   <input type='hidden' name='ID' value='$ID'>
   <input type='submit' value='(D)' name='esubmit'>

 

The buttton that doesn't work

<form action='home.php' method='POST'>
   <input type='hidden' name='action' value='testpage5'>
   <input type='hidden' name='Name' value='$Name'>
   <input type='submit' value='(D)' name='esubmit'>
   </form>

 

The only differnece is one asks for a name variable and the other one asks for an id.

I even tried changing up the malfunctioning one to an id and it still does the blank page.

 

I have check the "home.php" to make sure the action is set correctly and the info was being passed correctly and it appears to be setup correctly so I am a bit confused on why this is happening.

 

any help/suggestions would be appreciated.

Link to comment
https://forums.phpfreaks.com/topic/272901-help-form-not-posting-correctly/
Share on other sites

Have you checked the 'view source' of the form in your browser so that you know the fields have the values you expect?

 

Is there any other form on the page, in case you have invalid/nested forms.

 

What's the exact form processing code, since it could be testing for field names that don't exist or don't exactly match the form?

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.