Jump to content
Old threads will finally start getting archived Γ—
🚨🚨 GAME-CHANGING ANNOUNCEMENT FROM PHP FREAKS 🚨🚨 Γ—

Recommended Posts

what is the equivelant to php 4s

Β 

<form method=post action=file.php?action=1234>

<input type=submit value=Clear name=clear>

</form>

Β 

<?php

Β 

if($action == 1234)

{

print"hi";

}

?>

and the website would be something like www.xxx.com/file.php?action=1234

Β 

that wouldnt work in php 5 but it does in php 4.

Β 

I know in php 5 it would be something using $_POST or $_GET but im not to keen these.

Link to comment
https://forums.phpfreaks.com/topic/156981-form-submitting/
Share on other sites

ok, i mean in php 4 you could use

Β 

say there was a form at the link www.xxx.com/link.php and it brought you to that same page but with ?action=1234 that said

name: "bob"Β  as what you typed in and the name was "name"

if ($action == 1234)

{

print"$name";

exit;

}

Β 

and on the website it would say bob

Β 

but in php 5 it doesnt work

Β 

Β 

Link to comment
https://forums.phpfreaks.com/topic/156981-form-submitting/#findComment-826935
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.