Announcement

Collapse
No announcement yet.

Store response from prompt in PHP variable

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Store response from prompt in PHP variable

    Hello, this is most likely a very easy task but it is bugging me, for I am still farely new to PHP.

    So I want to take
    Code:
    prompt('What is your name?','')
    Then store that response in a PHP variable.

    The use for this wont be to store someone's name, but this is just my example.
    Yep Yep

  • #2
    well if your wanting to use a prompt to get the information you'll have to store the response in a cookie and then let PHP read the cookie.
    This is because the prompt wont appear until the page is loaded and php execution is finished.
    Scott MacVicar

    My Blog | Twitter

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...
    X