Jump to content

posting to php without html form


dsaba

Recommended Posts

Hey I am quite familiar how to create a php page that POSTS or REQUESTS variables sent by an html form

 

HOWEVER, I am wondering if it there is a way I can post variables to another php page or page in general, with php, and skip the form all together,

 

for example:

 

I have this page that POSTS information from an html form

it make $id = $_POST['id'];

this page is called formprocess.php

 

 

now what i want to do is instead of having to use the html form to actually submit this data to formprocess.php, i want to submit this data with php

 

I have a page called send-data.php

i want this page to send the 'id' variable straight to the formprocess.php page

with no html form

 

are you following me?

is there a way to do this or not? i can explain more if neccesary-thanks

Link to comment
https://forums.phpfreaks.com/topic/42650-posting-to-php-without-html-form/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.