Jump to content

newbie question


webmissile

Recommended Posts

Folks,

 

I am really new to this, I have the following form:

 

<form action="<?php echo($_SERVER['PHP_SELF']); ?>"

7        method="get">

 

<select name="feed"><?php

ShowSelectOption('http://digg.com/search?section=all&s='. trim($search) ,'diggs'); ?></select>

 

<input name="search" value="<?php echo htmlspecialchars($search); ?>" style="width:220px;background:#fff;" />

<input type="submit" value="Analyze" />

 

<?php

foreach ($_GET as $key=>$search)

          $search.=$key.'='.urlencode($search);

?>

 

</form>

<?php $search = htmlentities($_GET['search']); ?>

</div>

 

It actually works (sorta) ... amazing ... but I need to set the $search so it is ready to go the first time (I currently need to input first, then the variable is ready).

 

I imagine I've given a few of you something to chuckle about but I really need help with this.

 

Dave

Link to comment
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.