/    Sign up×
Community /Pin to ProfileBookmark

Submitting a form without a submit button.

Hi
I hope some one can help me.

I have a form on a php page (“A”) with hidden fields that I need to submit to another php page (“B”).

Page “A” is php script that does some calculations and then forwards the results to page “B” with hidden inputs.

How do I get page “A” to submit the hidden fields to page “B” after doing the calculations?

PLS. Help ?

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@KorAug 21.2006 — Why not a submit button?
Copy linkTweet thisAlerts:
@gogelpotauthorAug 21.2006 — The php page "A" does not display in the browser window. It gets info from another page "C" that has a submit button, then does some calculations and needs to send it to page "B"
Copy linkTweet thisAlerts:
@semi-sentientAug 21.2006 — document.formname.submit();

"formname" is the name of the form that you want to submit.
×

Success!

Help @gogelpot spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.8,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...