SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Feb 2003
    Location
    l'Europe
    Posts
    94
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    adjusting script

    Hi,

    I had a PHP-page with the following Javascript in it:

    function check(what) /* int, string */
    {
    what.form.submit();
    }
    I called this function with:

    <input type="text" name="somename" id="somename" size="20" value="<?=$somename?>" onblur="check(this);">
    so the page was refreshed and values where recalculated...

    Now I include this PHP-page (with the javascript) in another PHP-page when a certain value="1" (on the second page).

    How can I include 'value="1"' when refreshing the page with the Javascript function, because now this value is missing and the user isn't being returned to the included page after refreshing... (this page isn't being included at all...)

    Thank you for any help!

    Ann

  2. #2
    SitePoint Enthusiast
    Join Date
    Feb 2003
    Location
    l'Europe
    Posts
    94
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    I've found the following workaround,

    I've added some hidden fields with these values so when the pages is being submitted, these variables are also submitted and the included page is being returned to.

    Ann.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •