having problems with Onclick

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
groogruxking40
Forum Newbie
Posts: 17
Joined: Wed Jun 17, 2009 8:04 am

having problems with Onclick

Post by groogruxking40 »

pickle | Please use [ code=php ], [ code=text ], etc tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: :arrow: Posting Code in the Forums to learn how to do it too.


here is my code

Code: Select all

<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


pickle | Please use [ code=php ], [ code=text ], etc tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: :arrow: Posting Code in the Forums to learn how to do it too.
User avatar
tr0gd0rr
Forum Contributor
Posts: 305
Joined: Thu May 11, 2006 8:58 pm
Location: Utah, USA

Re: having problems with Onclick

Post by tr0gd0rr »

You've got a syntax error; "Upload" is missing a leading apostrophe.
groogruxking40
Forum Newbie
Posts: 17
Joined: Wed Jun 17, 2009 8:04 am

Re: having problems with Onclick

Post by groogruxking40 »

tr0gd0rr wrote:You've got a syntax error; "Upload" is missing a leading apostrophe.
you are awesome.
im an idiot, thanks= fixed it
Post Reply