You are here: About "posting" forms « PHP Programming Language « IT news, forums, messages
About "posting" forms

Posted by tony on 06/07/06 10:38

Is it possible to use the post method to send a form from PHP without
having to put the form in a html page?

<form action="https://www.mysite.com/cgi/incoming.php" method="post">
<input type="hidden" name="data01" value="12">
<input type="hidden" name="data02" value="rejected">
<input type="hidden" name="star" value="sirius">
<input type="image" src="https://www.mysite.com/grid001/image1.gif"
border="0" name="submit" alt="send data">
</form>

What I would like to do is make the use of this form as invisible to the
user as possible by

1. getting rid of the image (but then how do I "post" it)
2. putting PHP variables into the value fields
3. send the form

The PHP variables are set up as in
$data01 = 12;
$data02 = 'rejected'
etc
then

after just including it as in "include_once('senddata.php'); the form
above is in senddata.php and just gets posted

I've been looking at this and can't see how without having to include the
form on a html page. I looked at document.write but that again is
javascript.

Can this be done with just PHP?

thanks

tony

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация