DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: PHP  (Read 4,658 times)

Xarzu

  • Participant
  • Joined in 2008
  • *
  • Posts: 2
PHP
« on: February 05, 2011, 05:13 PM »
I am just starting out with PHP.  I have resorted to doing some custom PHP programming because the plug-INs for a CMS I am using need a little customization.

The question I have is very simple and I am sure PHP programmers can answer this instantly.  I have successfully declared a global PHP variable.  All I need to know how to do for now is how to declare a button or a hyperlink or an input form element such that it can change the assignment of this variable.

Stoic Joker

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 6,652
    • Cody Award
    • Participated in NANY Challenge Five Times
Re: PHP
« Reply #1 on: February 05, 2011, 09:29 PM »
PHP is a server side scripting language. if you only want to change a value (as apposed to submitting the entire form) you'd need to store the value in a hidden input field and then update it with a client side scripting language (typically Java Script).

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: PHP
« Reply #2 on: February 05, 2011, 09:39 PM »
it may seem like there should be a very simple direct answer to your question, but you will have to be a bit more specific about what you are trying to do -- as there are very different ways to interpret your question.

Original address: https://www.donationcoder.com/forum/index.php?topic=25528.0