How can I send a data whit Post but whithout a form ?
Posted: Wed Aug 16, 2006 11:26 am
feyd | Please use
show.php[/syntax]
thank you[/u]
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hi,
I want to know how can I send a data to an php script with post method, but I don't want to use it in form,
for example, I want to send the date with the data of the form, without appairing in form
example code :
[u]index.php[/u]
[syntax="html"]
<form method=post action='show.php'>
<input type=text name=name>
<input type= submit name=ok value=ok>
</form>
Code: Select all
<?php
echo $_POST['name'];
// I want to have an other data named 'date' in POST array
?>feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]