/    Sign up×
Community /Pin to ProfileBookmark

using php to fill out a form and submit it>

is there anyway i can use php to fill out a form with two text inputs with what i want and submit it?

to post a comment
PHP

9 Comments(s)

Copy linkTweet thisAlerts:
@JonaMar 02.2004 — [font=arial]Um, no... Why would you want to do that? ? [/font]

[b][J]ona[/b]
Copy linkTweet thisAlerts:
@ConorauthorMar 02.2004 — hmm this will be tough to explain. I run a forum system and we have a money system and a store and stuff. Now we also have a thing called "user stores" so users can make deals with each other on the boards. For my user store im using php so i need it to fill out the donate form with my name and the "money" amount and submit it.
Copy linkTweet thisAlerts:
@JonaMar 02.2004 — [font=arial]Why not process the data in the current PHP file?[/font]

[b][J]ona[/b]
Copy linkTweet thisAlerts:
@ConorauthorMar 02.2004 — the user stores is a forum where users discuss deals its not a php file
Copy linkTweet thisAlerts:
@JonaMar 02.2004 — [font=arial]You could use [url=http://php.net/session]sessions[/url].[/font]

[b][J]ona[/b]
Copy linkTweet thisAlerts:
@ConorauthorMar 03.2004 — you could use sessions to fill out a form and submit it *is confused*
Copy linkTweet thisAlerts:
@JonaMar 03.2004 — [i]Originally posted by RefreshF5 [/i]

[B]you could use sessions to fill out a form and submit it *is confused* [/B][/QUOTE]


[font=arial]You could use sessions to send information from one page to another without having to use a form at all.

If the forum uses PHP, the page would have to be a PHP file. If it's not, it should be. All you have to do is rename it, then use PHP code.[/font]
Copy linkTweet thisAlerts:
@ConorauthorMar 03.2004 — im sorry but im not quite understanding. the forums does use php but i still dont understand how i would send this form info with it. sorry.
Copy linkTweet thisAlerts:
@JonaMar 03.2004 — [i]Originally posted by RefreshF5 [/i]

[B]im sorry but im not quite understanding. the forums does use php but i still dont understand how i would send this form info with it. sorry. [/B][/QUOTE]


[font=arial]OK, this is kind of like programming with your eyes closed, for me... Blech...

Okay, if the file [b]is[/b] a PHP file, you can process the form data (that you would have sent to the other page but aren't going to because you can process it on the current PHP page) on the current PHP page. So why would you need to submit a form if you can do the processing on the same page?[/font]
×

Success!

Help @Conor 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.28,
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,
)...