Jump to content

$_POST


Recommended Posts

So last night I was working on a website for a client. I didn't develop this site I'm only updating it. Unfortunately I don't have the code with me since I don't have access to it at work. My problem is I have a hidden field called colourcost which is used to add to the price of a specific item. There is an include file (left.php) before the content is included that will add the item to the cart upon form submit (buy button/add to cart button). In that included file (left.php) I was testing $_POST['colourcost'] and it seems like it's unable to get the value of the hidden field. I have checked this many times, the hidden field is there and the value is there. Why wouldn't $_POST['colourcost'] get the value from the hidden field? Could the includes be the problem? Has anyone had any issues like that before?

Link to post
Share on other sites

Sure np. It's even more complicated when you didn't build the app. I confused to why I can't get the value. If I set the $_POST['colourcost'] to a value then it's fine but that's not what I want. I want it to be dynamic.Also, the developer did the same thing for another section of items and it works. I've compared the 2 sections and they are both pretty much the same. I'll try and compare it in detail tonight, was getting late last night...

Link to post
Share on other sites

That's too bad because I'm not the original web developer for this app so I will not do extensive work on it. A friend of mine which is gone for 1 year is the original web developer. I see some flaws in his scripting but I have enough work as it is.

Link to post
Share on other sites

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.   Paste as plain text instead

  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.

Loading...
×
×
  • Create New...