<anchor> TO <form>

Started on the old forum in April 2010 · view the original in the archive · old links redirect here

14 replies · 724 views · started 16 years ago · 1 min read

3 participants
bOrN2pwn Developer · 230 posts #1

Can any 1 please assist me.... I want this

print '<small><b>Shout:</b></small><br/>'.
'<input type="text" name="nick" value=""/><br/>'.
'<small><b><anchor>Ad<go href="adshout.php?id='.$id.'&pass='.$pass.'" method="post">'.
'<postfield name="action" value="edit"/>'.
'<postfield name="nick" value="$(nick)"/></go></anchor></b></small><br/>';

Im HTML form this is what I cam up with but it dos not work why........

              echo "<form method=\"post\" action=\"adshout.php?id=".$id."&pass=".$pass."\">";
                  echo "Shout:<br/><input name=\"nick\"/><br/>";
                  echo "<input type=\"submit\" name=\"POST\" value=\"Shout\"/><br/>";
                  echo "</form>";

What am I doing wrong....

BakGat

class Counter {
public:
  void Count();
  int  ReadDisplay();
private:
  int  CurrentCount;
};

External image (may be gone) External image (may be gone) External image (may be gone)

Back up my hard drive? How do I put it in reverse? http://www.hackthissite.org Profile…

subzero Super moderator Fellow · 3,954 posts #2
echo "<form method=\"post\" action=\"adshout.php\">"; 
                  echo "Shout:<br/><input name=\"nick\"/><br/>"; 
                  echo "<input type=\"submit\" name=\"POST\" value=\"Shout\"/><br/>"; 
                  
echo "<input type=\"hidden\" name=\"id\" value=\"$_GET[id]\"/>";
echo "<input type=\"hidden\" name=\"pass\" value=\"$_GET[pass]\"/>";
echo "</form>"; 

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

subzero Super moderator Fellow · 3,954 posts #3

its always better if you placed

echo "<form method="post" action="adshout.php">"; to echo "<form action="adshout.php" method="post">";

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

bOrN2pwn Developer · 230 posts #4

Thanx SUB this is working

           echo "<form method=\"post\" action=\"adshout.php?id=".$id."&pass=".$pass."\">";
                  echo "Shout:<br/><input type=\"text\" name=\"nick\" value=\"\"/><br/>";
                  echo "<input type=\"submit\" name=\"POST\" value=\"Shout\"/><br/>";

echo "<input type=\"hidden\" name=\"action\" value=\"edit\"/>";
echo "<input type=\"hidden\" name=\"nick\" value=\"\"/>";
echo "</form>";

But its not posting the message its posting blank

Got it fixed

     echo "<form method=\"post\" action=\"adshout.php?id=".$id."&pass=".$pass."\">";
                  echo "Shout:<br/><input type=\"text\" name=\"nick\" value=\"\"/><br/>";
                  echo "<input type=\"submit\" name=\"POST\" value=\"Shout\"/><br/>";

echo "<input type=\"hidden\" name=\"action\" value=\"edit\"/>";
echo "<input type=\"hidden\" name=\"$(nick)\" value=\"nick\"/>";
echo "</form>";

BakGat

class Counter {
public:
  void Count();
  int  ReadDisplay();
private:
  int  CurrentCount;
};

External image (may be gone) External image (may be gone) External image (may be gone)

Back up my hard drive? How do I put it in reverse? http://www.hackthissite.org Profile…

subzero Super moderator Fellow · 3,954 posts #5

posting blank nothing else ?

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

bOrN2pwn Developer · 230 posts #6

Im haveing trouble here from this

print '<form action="send.php?room='.$room.'&id='.$id.'&pass='.$pass.'" method="get"><br/>'.
'To:<br/>'.
'<input type="text" name="to'.$r.'" value="'.$to.'"/><br/>'.
'Subject:<br/>'.
'<input type="text" name="subject"/><br/>'.
'Message<br/>'.
'<input type="text" name="msg"/><br/>'.
'<anchor>Sent Mail<go href="send.php?room='.$room.'&id='.$id.'&pass='.$pass.'" method="post">'.
'<postfield name="to" value="$(to'.$r.')"/>'.
'<postfield name="subject" value="$(subject)"/>'.
'<postfield name="msg" value="$(msg)"/>'.
'</go></anchor><br/>';

To This

 echo "<form method=\"get\" action=\"send.php?room=".$room."&id=".$id."&pass=".$pass."\"/>";
                  echo "To:<br/><input type=\"text\" name=\"to".$r."\" value=\"".$to."\"/><br/>";
                  echo "Subject:<br/><input type=\"text\" name=\"subject\" value=\"\"/><br/>";
                  echo "Message:<br/><input type=\"text\" name=\"msg\" value=\"\"/><br/>";
                  echo "<input type=\"submit\" name=\"Submit\" value=\"Send\"/><br/>";

echo "<input type=\"hidden\" name=\"$(to".$r.")\" value=\"to\"/>";
echo "<input type=\"hidden\" name=\"$(subject)\" value=\"subject\"/>";
echo "<input type=\"hidden\" name=\"$(msg)\" value=\"msg\"/>";
echo "</form>";

BakGat

class Counter {
public:
  void Count();
  int  ReadDisplay();
private:
  int  CurrentCount;
};

External image (may be gone) External image (may be gone) External image (may be gone)

Back up my hard drive? How do I put it in reverse? http://www.hackthissite.org Profile…

syrus Junior · 44 posts #8

Thats what happen to people who chat too much but anyways ama show u how a newbie i am by fixing this simply little thing

echo '<form method="get" action="send.php">'; 
echo '<input type="hidden" name="room" value="'.$room.'" />'; 
echo '<input type="hidden" name="id" value="'.$id.'" />'; echo '<input type="hidden" name="pass" value="'.$pass.'" />';
echo 'To:<br/><input
type="text" name="to'.$r.'" value="'.$
to.'"/><br/>';
?>
Subject:<br/
><input type="text"
name="subject"
value=""/><br/>
Message:<br/><input type="text"
name="msg" value=""/><br/>
<input type="submit" name="Submit" value="Send"/></form> <? 

The 'to' field value look a bit strange bt then again it depends on what u doin there..

bOrN2pwn Developer · 230 posts #10

I have only got 1 more left this 1 is a disaster....... to many variable for my brain lmao

print '<input name="msg'.$r.'"/><br/>'.
'<select name="private" title="'.$lang['privat'].'">'.
'<option value="0">Public</option>'.
'<option value="'.$login['id'].'.'.$data['id'].'">Private</option>'.
'</select><br/>'.
'<anchor>Say<go href="room.php?id='.$id.'&pass='.$pass.'&room='.$room.'&r='.$r.'&mod='.$mod.'" method="post">'.
'<postfield name="private" value="$(private)"/>'.
'<postfield name="msg" value="'.$data['login'].', $(msg'.$r.')"/>'.
'<postfield name="translit" value="$(translit)"/></go></anchor><br/>';

BakGat

class Counter {
public:
  void Count();
  int  ReadDisplay();
private:
  int  CurrentCount;
};

External image (may be gone) External image (may be gone) External image (may be gone)

Back up my hard drive? How do I put it in reverse? http://www.hackthissite.org Profile…

syrus Junior · 44 posts #11

was just browsing around on my phone and decide to fix it wldnt take me a min so why not, and sub it doesnt matter which come first method or action both will produce same results

bOrN2pwn Developer · 230 posts #12

syrus wrote: Thats what happen to people who chat too much but anyways ama show u how a newbie i am by fixing this simply little thing

echo '<form method="get" action="send.php">'; 
echo '<input type="hidden" name="room" value="'.$room.'" />'; 
echo '<input type="hidden" name="id" value="'.$id.'" />'; echo '<input type="hidden" name="pass" value="'.$pass.'" />';
echo 'To:<br/><input
type="text" name="to'.$r.'" value="'.$
to.'"/><br/>';
?>
Subject:<br/
><input type="text"
name="subject"
value=""/><br/>
Message:<br/><input type="text"
name="msg" value=""/><br/>
<input type="submit" name="Submit" value="Send"/></form> <? 

The 'to' field value look a bit strange bt then again it depends on what u doin there..

I see were I made the mistake now lol...... This must come before the for itself am I correcrt.....

echo "<input type=\"hidden\" name=\"$(to".$r.")\" value=\"to\"/>"; 
echo "<input type=\"hidden\" name=\"$(subject)\" value=\"subject\"/>"; 
echo "<input type=\"hidden\" name=\"$(msg)\" value=\"msg\"/>";

BakGat

class Counter {
public:
  void Count();
  int  ReadDisplay();
private:
  int  CurrentCount;
};

External image (may be gone) External image (may be gone) External image (may be gone)

Back up my hard drive? How do I put it in reverse? http://www.hackthissite.org Profile…

syrus Junior · 44 posts #13

that one is even easier create a form and move all inputs and select tags within the form the foreach of those uri id etc create a hidden input or pm me the file am off to work

syrus Junior · 44 posts #14

bOrN2pwn wrote: I see were I made the mistake now lol...... This must come before the for itself am I correcrt.....

echo "<input type=\"hidden\" name=\"$(to".$r.")\" value=\"to\"/>"; 
echo "<input type=\"hidden\" name=\"$(subject)\" value=\"subject\"/>"; 
echo "<input type=\"hidden\" name=\"$(msg)\" value=\"msg\"/>";

or is it the other way round? i.e name = name and not the value?

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close