PRIVATE151
New member
This might be confusing but
in php if nothing gets posted i want it to post ABC if it does getted posted i want it to post what was posted e.g. Post DEF
how can i do this?
Heres the post code
<HTML>
Link:<br />
<input name="Link" type="text" id="Link" />
</HTML>
<?php
$Link = $_POST['Link'];
?>
I get this
$Link =
if(isset($_POST['Link'])) {
echo $_POST['Link'];
} else {
echo "ABC";
};
and get the error
Parse error: parse error in C:\wamp\www\***\******.php on line **
in php if nothing gets posted i want it to post ABC if it does getted posted i want it to post what was posted e.g. Post DEF
how can i do this?
Heres the post code
<HTML>
Link:<br />
<input name="Link" type="text" id="Link" />
</HTML>
<?php
$Link = $_POST['Link'];
?>
I get this
$Link =
if(isset($_POST['Link'])) {
echo $_POST['Link'];
} else {
echo "ABC";
};
and get the error
Parse error: parse error in C:\wamp\www\***\******.php on line **