Current location: Hot Scripts Forums » Programming Languages » PHP » can PHP submit a form without user clicking button?


can PHP submit a form without user clicking button?

Closed Thread
  #11 (permalink)  
Old 02-21-08, 10:06 AM
Deansatch Deansatch is offline
Coding Addict
 
Join Date: Jul 2006
Location: Northumberland
Posts: 375
Thanks: 0
Thanked 0 Times in 0 Posts
If for some reason you don't want to use hidden fields and one form, you can use javascript on the second form:

give your form a name="form_name"

Code:
<script type="text/javascript" language="JavaScript">
  document.form_name.submit();
</script>
__________________
Aye!
  #12 (permalink)  
Old 02-21-08, 06:11 PM
lindasnephew lindasnephew is offline
Newbie Coder
 
Join Date: Jan 2008
Posts: 64
Thanks: 0
Thanked 0 Times in 0 Posts
just to throw in my 2 cents..

you said you don't want to send it in the url and the $_Get it at the other end cos of monies and such..

well if you sending hidden form elements there's not really much difference.. the user can see the hidden elements and if they did want to change the values being sent all they would have to do is copy your html, save it on there own machine, save it and run it..

like i said, my 2 cents
  #13 (permalink)  
Old 02-22-08, 05:04 AM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
Wow, i don't know about you guys, but I can read dates & times, and 02-22-2005 means that it was 3 years ago that the last post was made in this thread.

Maybe it's time to let go (I know it's hard ). If you need some help on this topic, start a new one

</closed>
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

Closed Thread

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Form - Button that executes - Need Help Proton PHP 1 02-05-05 10:27 PM
How to submit a form using a link, not a submit button? Myke311 HTML/XHTML/XML 3 01-12-05 01:26 AM
submit form with more than one href submit and no submit button adlinfanus JavaScript 1 03-09-04 06:45 AM
Need Epinions-lite system in PHP & MYSQL wali001 Job Offers & Assistance 4 01-12-04 06:02 AM
process form without press submit button azwani JavaScript 1 11-03-03 01:10 AM


All times are GMT -5. The time now is 05:33 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.