Results 1 to 3 of 3

Thread: having problems with Onclick

  1. #1
    Join Date
    Jun 2009
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default having problems with Onclick

    here is my code

    Code:
    <input type="submit" class="button" onclick="window.open('http://wwww.christiancouriernewspaper.com/upload.html',Upload','width=400,height=400')" name="<?php echo $form_id; ?>" id="<?php echo $form_id; ?>" value="<?php echo $submit_text; ?>" alt="<?php echo $submit_text; ?>"<?php echo $x_or_h; ?>><br<?php echo $x_or_h; ?>>
    if you go to this page.. www dot christiancouriernewspaper dot com / blogbase / contactpage.php

    you will see the SUBMIT button, what I want is for when the user hits submit, it

    (a) sends the information to me
    (b) popups a window to upload a file

    for someone reason it's not working-- it's sending the emails just fine, but the popup doesn't show
    any/all help will be much appreciated

    thank you

  2. #2
    Join Date
    Jun 2008
    Posts
    589
    Thanks
    13
    Thanked 54 Times in 54 Posts
    Blog Entries
    1

    Default

    Try out this cleaner version of your code... :/

    Code:
    <input type="submit" class="button" onclick="window.open('http://wwww.christiancouriernewspaper.com/upload.html', 'Upload', 'width=400, height=400');" name="<?php echo $form_id; ?>" id="<?php echo $form_id; ?>" value="<?php echo $submit_text; ?>" alt="<?php echo $submit_text; ?>" <?php echo $x_or_h; ?>><br <?php echo $x_or_h; ?>>

  3. The Following User Says Thank You to magicyte For This Useful Post:

    groogruxking40 (08-14-2009)

  4. #3
    Join Date
    Jun 2009
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by magicyte View Post
    Try out this cleaner version of your code... :/

    Code:
    <input type="submit" class="button" onclick="window.open('http://wwww.christiancouriernewspaper.com/upload.html', 'Upload', 'width=400, height=400');" name="<?php echo $form_id; ?>" id="<?php echo $form_id; ?>" value="<?php echo $submit_text; ?>" alt="<?php echo $submit_text; ?>" <?php echo $x_or_h; ?>><br <?php echo $x_or_h; ?>>
    huge thanks.
    much nicer

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
  •