[PHP] Post and get (at the same time (?))


 
Thread Tools Search this Thread
Top Forums Web Development [PHP] Post and get (at the same time (?))
# 1  
Old 03-09-2009
[PHP] Post and get (at the same time (?))

Hi, i'm programming a very tiny website for a friend. But i have some doubts...
I have a page called form.php, it receives a variable using the get method... (form.php?variable_importante=datos)...
In form.php i have a form, and it sends data to form_manager.php using POST method... But the problem is that i need to pass the first variable (the one called variable_importante that was pased to form.php by GET) to form_manager.php... how can i do that??? I've been reading a lot but i could't find the answer....

thanks in advance!!!
bye!
# 2  
Old 03-09-2009
I keep on reading and i found the answer!!!
It's really easy to do what i wanted to do...

<form methond='post' action='web_page.php?variable=valor'>

in my specific case

<form methond='post' action='web_page.php?variable= <?php echo $_GET['variable'] ?>' enctype='text'>

bye!
# 3  
Old 03-10-2009
Hi Sandia_man,

Thanks for the update on the solution!
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Programming

How to Get Login time history in PHP?

Hi, Need a perfect user data base solution for my ecommerce website. I want to track whole activity of my end user until the user logout Thanks in Advance (1 Reply)
Discussion started by: AimyThomas
1 Replies

2. Programming

PHP Travel Clock based on Mysql Date time

I have date time records in a PHP mysql table, I need a PHP travel clock which obviously counts down, I mean acts like a travel clock, but the clock time should be the date time field value down by the second, based on the full date time, from day to seconds It is not just one record, I... (1 Reply)
Discussion started by: AimyThomas
1 Replies

3. Programming

My first post (Probably a really dumb php question)

Ok so I'm new on here and new to php scripting.. I'm taking over a script that was managed by someone else and I'm trying to figure out how I can add code that looks for two conditions that would be an exception to the code below.. $colred = 0; if(stristr($result, "containsthis")) { $colred =... (2 Replies)
Discussion started by: gmcpheden
2 Replies

4. Web Development

Passing values in PHP using POST

Lets say that I have a URL that consists of: myserver/something1.php My second URL is myserver/something2.php I have a variable called $var inside something1.php and once I submit the website the $var changes. Now when I do this I want to send this value using POST to something2.php and echo... (1 Reply)
Discussion started by: puttster
1 Replies

5. Web Development

[PHP] Script to Time Remote Server Response and Email

Here is a simple PHP script I wrote that times getting a link using mtime with curl and emails if it does not meet my objective. I use it in production for checking the performance of a Content Delivery Network (CDN), but you can use it for any web server. <?php $heartbeat =... (1 Reply)
Discussion started by: Neo
1 Replies

6. Shell Programming and Scripting

input variable like POST in PHP possibly?

I have a very large database and once in awhile the database auto loading scripts that update the database for the daily updates fails and I have to go in and manually fix it but when that happens I usually have to start from scratch on sundays I have access to a weekly database rebuild. Then I... (3 Replies)
Discussion started by: chadrt
3 Replies

7. UNIX for Dummies Questions & Answers

PHP-MySQL: POST issue

I am moving from a shared hosting environment to a dedicated box. The migration also involves a mySQL database managed using a web-based PHP interface. I can read the contents of the db (connection is good) but when I try to administer, the form variables aren't going from step 1 (add) to step 2... (0 Replies)
Discussion started by: adrious
0 Replies
Login or Register to Ask a Question