Is this possible? I'd like to have a graphic run a function, in my case have it run the PHP mail() command, and also go to a website. I'm making a paypal button, but then they click it, I'd like it to send out an email and then go to the paypal site so they can pay. Does that make sence? Ideas? Thanks!
hmm.. I'll try that. Also, is there a way to automaticly submit a form? for example, lets say a user fills out most of a form site, they click submit (which sends it to a processing.php) processing.php see's that all the inputs have not been filled out and sends the user to a page where they can finish filling out the form. in the processing.php I'd like to have a bunch of hidden inputs that have the values the user had entered previously. But I want processing.php to "submit" instead of redirect so that those hidden input values will be send to whatever page I want. does that make sense? Thanks
Remember that javascript is a client side scripting language and php is a server side scripting language. I preffer to check values client side instead of server side. If I check them server side it is only because I am working with a database or something. You might look into the php function isset();
cool. i'll look into that as well. That seems like the user has to do something. a while back I found a way to automaticly run the javascript function. write all your javascript directly after you <HTLM> tag.
then once you have everything you need put in your body tag like this
<body onLoad=" run_this_function(<parameter>);" >
that way when it gets the the body tag it will run what ever function you want it to, or multiple if it's needed.
very handy. At least I found it useful. I ment to post this earlier, but got caught up in the project I was using it for. Hope this helps someone else.
Users browsing this forum: No registered users and 2 guests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum