Jump to content

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?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.